RAM disk
-
I'm currently working on a project using a third-party tool. All of the data I'm working with is handled via MemoryStream for the most part, and in most cases need never be written to disk. (Completed document is streamed to the browser, then the stream discarded.) Unfortunately, the 3rd-party tool I'm using only operates on files (both input and output.) I'd like to avoid having temp files everywhere if at all possible. Is there any way through .Net that I can create an old-fashioned RAM disk to do this processing on? It'd be even better if there were a way to have a FAT record point to a memory buffer that already exists instead of having to actually duplicate the data on the RAM disk, but even that's preferable to actual disk I/O. Thanks for whatever pointers anyone can give me. (BTW, for those who're interested, or if it makes a difference, the 3rd-party tool I'm working with is GhostScript.)
Grim
(aka Toby)
MCDBA, MCSD, MCP+SB
SELECT * FROM user WHERE clue IS NOT NULL GO
(0 row(s) affected)
-
I'm currently working on a project using a third-party tool. All of the data I'm working with is handled via MemoryStream for the most part, and in most cases need never be written to disk. (Completed document is streamed to the browser, then the stream discarded.) Unfortunately, the 3rd-party tool I'm using only operates on files (both input and output.) I'd like to avoid having temp files everywhere if at all possible. Is there any way through .Net that I can create an old-fashioned RAM disk to do this processing on? It'd be even better if there were a way to have a FAT record point to a memory buffer that already exists instead of having to actually duplicate the data on the RAM disk, but even that's preferable to actual disk I/O. Thanks for whatever pointers anyone can give me. (BTW, for those who're interested, or if it makes a difference, the 3rd-party tool I'm working with is GhostScript.)
Grim
(aka Toby)
MCDBA, MCSD, MCP+SB
SELECT * FROM user WHERE clue IS NOT NULL GO
(0 row(s) affected)
Not the answer you're directly looking for, but GhostScript is open source, so one solution would be to hack into GS the ability to read your data directly from RAM -- Help me! I'm turning into a grapefruit! Phoenix Paint - back from DPaint's ashes!
-
Not the answer you're directly looking for, but GhostScript is open source, so one solution would be to hack into GS the ability to read your data directly from RAM -- Help me! I'm turning into a grapefruit! Phoenix Paint - back from DPaint's ashes!
True, but I'm on a short timeline, which is the main reason I'm using 3rd-party tools in the first place. We had found a few 3rd-party solutions for doing what we actually need from ghostscript, but they all have their own problems. In some cases, they can't even render the PDF properly. That's the only reason I'm even looking at anything as low-level as Ghostscript.
Grim
(aka Toby)
MCDBA, MCSD, MCP+SB
SELECT * FROM user WHERE clue IS NOT NULL GO
(0 row(s) affected)