Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

String to FileUpload Object?

 
Rohit Malhotra
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am writing an Application which allows files to be uploaded ,checked in

and checked out of the Applciation . I am using Apaches FileUpload Class

for hte upload Functionality.

I am maintaining a backup of the files by converting the file data

into String and storing ti in CLOB datatype in the Database.

Now wehn the Application starts, i am using Context listners to intialize

the application with the data of the file from the DATABASe.

Can anyone please let me know how can i construct an FileUpload object

using the String data from the Database? Thanking in advance,

Regards.
Rohit
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think that's possible. FileUpload concerns itself with receiving files over an HTTP connection, not with creating them from memory or disk.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!