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 / March 2006

Tip: Looking for answers? Try searching our database.

Uploading a file to a server

Thread view: 
Stuart Layton - 14 Mar 2006 20:23 GMT
I am currently developing some software for a Palm TX using j2me. The
final stages of the project require me to upload a data file to a
server. There are going to be many datafiles coming from many different
palms and so each one must be unique (in name) as to not overwrite a
previously uploaded file.

I am not sure about how to do this. Security is as always important we
don't want anybody to be able to upload files to our server.

Any information that i can get would be great.

Also if you have any code snippets I would be forever greatful.

-Stuart
Stuart Layton - 14 Mar 2006 20:25 GMT
Again this is running on a Palm TX. We are developing the software in
IBM websphere and are using their VM.
Oliver Wong - 15 Mar 2006 17:35 GMT
>I am currently developing some software for a Palm TX using j2me. The
> final stages of the project require me to upload a data file to a
[quoted text clipped - 8 lines]
>
> Also if you have any code snippets I would be forever greatful.

   Have the palms just upload the contents of the file, without specifying
a name. The server will select a name, not the palm. The server can just
name the files after sequential integers (e.g. "00000.dat", "00001.dat",
etc.). If the palm later on needs to know the name of the file, it can ask
the server.

<Example protocol>
Palm says "I want to upload a file."
Server says "Okay. It'll be stored in '88439283.dat'."
Palm says "Okay. The contents of the file are 'foo'."
Server says "Okay, the file is stored."
Palm says "I want to access file '88439283.dat'."
Server says "Okay, the contents are 'foo'."
</Example protocol>

   - Oliver


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.