473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Applets and files in one

How can we perform file handling in applets ?
It's keeps on giving unreported exception,even if try-catch block is used.

How can we perform client server action in applet.Actually i want my applet to be the front end for the application and when the user would click "Start"button on the applet ,then using ActionListener i have tried to start the client connection.But,stream handling and file opening is not possible.How can it be done? My file should be copied from the server to client and once loaded should start playing.

What is the limit of size of file(in bytes) that can be sent over a network using Input/OutputStreams.
Apr 28 '07 #1
3 1364
JosAH
11,448 Expert 8TB
How can we perform file handling in applets ?
It's keeps on giving unreported exception,even if try-catch block is used.

How can we perform client server action in applet.Actually i want my applet to be the front end for the application and when the user would click "Start"button on the applet ,then using ActionListener i have tried to start the client connection.But,stream handling and file opening is not possible.How can it be done? My file should be copied from the server to client and once loaded should start playing.

What is the limit of size of file(in bytes) that can be sent over a network using Input/OutputStreams.
Applets run in a very restrictive sandbox, e.g. they are not allowed to fiddle-diddle
with the filing system of the computer they run on (your client's machine) nor
are they allowed to establish connections to other machine except to the server
they were downloaded from. You need to sign your Applet to make it a trusted Applet.

There's no limit w.r.t. the number of bytes read over a network.

kind regards,

Jos
Apr 29 '07 #2
Applets run in a very restrictive sandbox, e.g. they are not allowed to fiddle-diddle
with the filing system of the computer they run on (your client's machine) nor
are they allowed to establish connections to other machine except to the server
they were downloaded from. You need to sign your Applet to make it a trusted Applet.

There's no limit w.r.t. the number of bytes read over a network.

kind regards,

Jos
Ya,i just read about signed applets,but actually i am working on my college project and we have been taught simply applets only.

Is is possible to complete the project?i mean ,i want to know how can we then build this application.
the objective goes like-
building an audio online exam system.the audio streaming part is done,now i want that the client first starts with an applet,then when "start exam"is pressed the client code is executed,the file is brought from server and then when the questions have been solved,answers are submitted back

Another query is when i open an frame from within an applet or frame,i want the former one to be destroyed.
eg when student clicks on "start exam",anorther frame window opens showing "loading" and then questions in it,but the window from which this action started is needed no more,tried clling destroy,but no help

Sir.i have sent you my codes too
Apr 29 '07 #3
JosAH
11,448 Expert 8TB
You can certainly load data from the place where your Applet came from, you
just can't read/write from/to the local filing system (your client's machin). Once
you've read the data from the server simply keep it in memory and create
Streams from there if you need to.

kind regards,

Jos

ps. please don't send me source code nor technical questions through PM or
my email; I don't read them there. You write here in the forums and I'll try to
answer your questions here.
Apr 29 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Dave D | last post by:
I just read something that spooked me. I'm a newbie working my way through "SAMS Teach Youself Java 2 in 21 Days." I used to code a bit in Symantec's Visual Cafe for Java about 3 years ago, but...
4
by: zalekbloom | last post by:
I noticed on my PC with win98/IE 6.028 applets are not working. Applets are working when I use Netscape 7.1. When I open the DOS win and I check for a Java version I am getting: C:\WINDOWS>java...
1
by: d.morel | last post by:
Hello all..this is driving me crazy... I cant run applets in IE6.0 using the embedded Oracle 10g server. here are my peticulars... - Windows XP no service packs (offline machine) - jre 1.4.2_03...
0
by: d.morel | last post by:
(i am posting here out of sheer desperation... perhaps someone could at least answer me and call me too dumb or something... :}... I have tried Oracle forums... ect ect... sorry in adavnce) ...
0
by: d.morel | last post by:
(i am posting here out of sheer desperation... perhaps someone could at least answer me and call me too dumb or something... :}... I have tried Oracle forums... ect ect... sorry in adavnce) ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.