Questions tagged [virtual-file]

Use this tag for questions about programmatically creating and using virtual files. Questions specific to a certain programming language and/or framework should also be tagged with that language and/or framework.

31 questions
1
vote
0 answers

Zip Format in Virtual Drag&Drop from melander?

Context: With the help of http://melander.dk/delphi/dragdrop/ i've created a little prototype to Save attachments in a AdsTable (the prototype is build so that the way the Stream is saved can be decided by the user). Everything works fine so far…
MBe
  • 35
  • 2
0
votes
0 answers

How to open a virtual File in Android, without saving it to local

If there are some files hosted in the server how can we access and view them without saving those Files to storage in Android. Say suppose there are some .pdf,.png,.doc files in server from my app if user tries to open the file it should open in…
user38561
  • 1
  • 2
0
votes
0 answers

Writing and Reading virtual files on Windows

As part of a Python project on Windows, I need to use small files as a means to communicate different processes. Since the external process must be called with subprocess.run(program, args...), I can't simply obtain a file descriptor for my file and…
Aeryan
  • 43
  • 1
  • 4
0
votes
1 answer

Using javascript client-side, how can I display a "virtual folder" (= a coherent collection of html,img,js with relative paths)?

I want to display autonomous "sites" on a html page (Say "root"). Those "sites" contain a landing page : index.html and a collection of *.css, .js,.png) By autonomous, I mean those sites does not have external dependencies and all paths are relative…
v1nce
  • 735
  • 9
  • 20
0
votes
1 answer

How to use file in-memory?

The following code currently saves the file to disk. Can I save it to memory instead? def synthesize(iam_token, text): url = 'https://example.com/tts:synthesize' headers = { 'Authorization': 'Bearer ' + iam_token, } data =…
LA_
  • 19,823
  • 58
  • 172
  • 308
0
votes
1 answer

how to set dynamic path for of virtual directory mapping in weblogic.xml

Depends on my Environment the service name will gets change for weblogic, In order to use Virtual directory mapping i'll have to pass this path exmpl /usr1/SIR1234 which is hard coded and differ from environment to environment. So i need to pass…
deepak mishra
  • 310
  • 2
  • 13
0
votes
1 answer

How to create a virtual file for output?

I need to create a virtual file in memory to trick the system and to let it think that it exists. I have some scientific program and I heed to provide in some function file for output as argument. I want to create some file in memory and provide…
Beliaev Maksim
  • 968
  • 12
  • 21
0
votes
1 answer

Apache server : Get a virtual file distribute by a script

My problem is the following : I have build an apache server (with python cgi). I have client that try to get a file like http://mysever/file (which is virtual, it does not exist). Depending of the user agent of the client I would like to serve a…
Megaman
  • 149
  • 12
0
votes
2 answers

Handle file input/output of external binary from python

From my Python script I need to call consequently two external binaries in order to process file in two steps: import os, subprocess sbp = subprocess.Popen(['program_1', '-i', 'input.file', '-o', 'temp.file']) sbp = subprocess.Popen(['program_2',…
Roman
  • 2,225
  • 5
  • 26
  • 55
0
votes
2 answers

Implementing a virtual file by overriding Win32 File API

Is there any way to override Win32 File API such as CreateFile()? I want my app to see a virtual file solely for my app, however, the virtual file does not exist actually.
Hyunjik Bae
  • 2,721
  • 2
  • 22
  • 32
0
votes
1 answer

Write string to virtual file?

Our teacher has a web server and we are allowed to test some things. I connected to the server with Putty and tried following command: echo "i 4 r 255 g 0 b 0." > /dev/ttyACM0 ttyACM0 is a virtual file redirecting the stream to a serial interface.…
Cubi73
  • 1,891
  • 3
  • 31
  • 52
0
votes
0 answers

python - put a virtual fite to child process

I want to run a child process with subprocess.Popen and the application reads a config file. The application connects to a database. Before I run the application I create an ssh tunnel and overwrite his config file to connect to the tunnel. (I run…
microo8
  • 3,568
  • 5
  • 37
  • 67
0
votes
1 answer

IntelliJ PlugIn Development- Get the Project Structure

I want to visualize a part of the project structure. Therefore I need something like a VirtualFileVisitor that can be attached to a VirtualFile. (2 get the subtree of this element). Does something like this exists? And are there some examples…
user2988098
  • 81
  • 1
  • 6
0
votes
1 answer

How to execute a file residing in memory with BoxedAPP

I've purchased a license of BoxedAPP and when I wrote for help to the support mail I got any answer. I've downloaded the SDK examples but all the important examples are in C# (and even if I use a translator I can't understand it), and the vb.net…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
-1
votes
1 answer

Pickle / Save Virtual File in Python to Disk

I would like to pickle a virtual file within a dictionary. Specifically, I have a function G with a method save() that takes a file-obj or a string (filename) to save it's content to disk. But I would like to save it to a virtual file first, then…
Suuuehgi
  • 4,547
  • 3
  • 27
  • 32