Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2006

Tip: Looking for answers? Try searching our database.

File Creation

Thread view: 
raavi - 30 Jun 2006 07:19 GMT
Hi all
   I am now doing  a webapplication involving servlets.i want to creat
a dynamic view of  an image.the image generated will be of type
BufferedImage and i want to write it into a file.i have created  the
file using File class and CreateNewFile()method.but the file is not
created on that location.can anyone tell me why is this so? also tell
me whether wait() method will help to suspend a servlet for sometime?
Thanks in Advance
Regards
Anu
Andrew T. - 30 Jun 2006 10:13 GMT
> Hi all
>     I am now doing  a webapplication involving servlets.i want to creat
> a dynamic view of  an image.the image generated will be of type
> BufferedImage and i want to write it into a file.i have created  the
> file using File class and CreateNewFile()method.but the file is not
> created on that location.can anyone tell me why is this so?

Change the '.' to a ',' in line 273 of your source.

Failing that.

What stacktraces are you getting?
Are you printing stacktraces, or just ignoring the exceptions?

It might be that you are attempting graphical operations in
a headless environment, but it might be one of a dozen or so
other things as well.

>..also tell
> me whether wait() method will help to suspend a servlet for sometime?

What benefit do you think that will bring to your web application?

Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.