urgently help needed
hi,
my program basically download the file from the given url.
what i have to do is, i have to read the file into a byte array, and then depepnding on the content of file,which is in byte stream, open a content specific application there. like if the file is pdf, then my program should be able to open acrobat reader there and i am not allowed to store file anywhere in the hard-disk..
is there any solution for this?
thanks in advance..
# 2
thanks for replying..
there is some dll in windows, which when executed with java api
runtime.getruntime.exec("rund32 url.dll,fileprotocolhandler",+path)
open a content specific application..
can' t i run this API withy byte array...?
and regarding your reply.. do i need to implement contenthandlerfactory class in my program?
thanks
# 6
If you're not allowed to store the file locally (assuming the file isn't available on a network share or some such), you are SOOL, because not too many Windows applications accept byte streams on the command line.
P.S. please try to use a more descriptive subject line next time. Everyone needs help urgently...
# 7
although i am not allowed to create file on disk because of security issue, like other can access it, do you have any idea, if i create temporary file and store it in disk.. and secure it appropriately..or delete it after initiating the corresponding application...