Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 25th, 2003, 12:25 AM
Authorized User
 
Join Date: Jul 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default InputStream and OutputStream in javascript??

Hi all friends,

In javascript is there FileInputStream and FileOutputStream because iam developing one uploading application and iam using html for client interface now my requirement is i have to upload big file say upto 80mb now i want to send file to server in block wise(2048kb) for that i want read file in block of 2048 kb and want to write on outputstream and my servlet read from outputStream and can write,so that I can upload big file.Can any plz guide me how I can do it in html.

Regards
Bikash

 
Old July 25th, 2003, 03:42 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

For security reasons you cannot read files off a user's hard disk using javascript.
 
Old July 25th, 2003, 04:56 AM
Authorized User
 
Join Date: Jul 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Then I couldn't understand how we can send file as a attachment in Yahoo and Hotmail if there is any security reason in IE.Can you plz explain it little bit more.

Thanks&Regards
Bikash

 
Old July 25th, 2003, 05:05 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

I'm not saying that the browser cannot send files - what I'm saying is that you cannot use javascript to read a file off a users hard disk.





Similar Threads
Thread Thread Starter Forum Replies Last Post
stop current javascript function using javascript sakthi Javascript 3 June 2nd, 2008 03:30 PM
Buffers, InputStream & ByteArrayOutputStream erobb BOOK: Beginning Java 2 0 March 21st, 2008 01:01 AM
Using font created by createFont(int, InputStream) smshinde Java GUI 0 March 13th, 2005 01:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.