Transfer files between server and clients
Hi all
i use oracle forms 11g r2 webutil
i have some questions :
1- How i can choose picture from client side and save it on server ( in folder ) ?
2- How i can print the picture from client side?
Thanks
Hello,
For transfering files, configure the Webutil library, then use its AS_To_Client() and Client_To_AS() methods.
Francois
Similar Messages
-
Data streaming between server and client does not complete
Using an ad-hoc app, data streaming between server
and client does not complete as it supposed to be.
The process runs well in solaris 5.8, however under 5.9
we have found the characters stream buffer length limitation
is around 900 to 950 characters (by default we are using 3072
characters).
Example:
- We are transfering HTML file, which will be displayed
in the App client, with buffer=3072, the HTML only displayed / transfered
as xxxxxxxx characters, but with buffer=900 the HTML is displayed properly,
in this case, the only problem that we have is the file transfer will
eventually longer than usual.
- There is another case, where we have to transfer information (data) as stream
to the client. A long data stream will not appear at all in the client.
Any ideas why the change between 5.8 and 5.9 woudl cause problems?
The current app-driver that we are using is compiled using Solaris 5.6,
if possible we would like to have use of a later version, which is compiled using Solaris 5.9, do you think this will probably solve our problem?
Thanks
PaulDoes this have anything to do with Java RMI? or with Java come to think of it?
-
Speed between server and client when using FML
I using FML between server and client, the server access oracle using only 5 ms, but when tranfer back to client, it about 100ms long. I tuned my hp-ux 11 kernel and tuxedo config file, but useless, Why?
Hi Tumecan,
Your expected information available here, check.
Frontend Network Load - Network Integration Guide (BC-NET) - SAP Library
few related SAP Notes:
164102 - Network load between application server and front end
500235 - Network Diagnosis with NIPING
62418 - Network Load of SAPGUI Frontend Communication
679918 - The front-end network time
578118 - Long response times on the SAP GUI
161053 - Using SAP GUI in WAN
Regards,
V Srinivasan -
Serialize the object between Server and Client?
Hello friends,
What is the important to Serialize the object between server and client?
Thanks
tamilvananin which context ??
Anyways,checkout the below link and try to understand how do we convert Serializable Object's State to in Stream and send it over network.
http://java.sun.com/j2se/1.4.2/docs/guide/serialization/examples/index.html
Hope that might help :)
REGARDS,
RaHuL -
Bandwidth between server and client
HI
What is the minimum bandwidth can be allocated between server and client?Hi,
Your question has no standard answer. The minimum bandwidth is variable to each specific system. It depends on many other factors too.
Thanks,
Gordon -
HT204291 how to transfer files between 5C and ipad
how to transfer files between 5C and ipad data
iCloud: http://www.apple.com/icloud/features/
or using a computer, iTunes: http://support.apple.com/kb/ht1296 -
[vmware] Best way to share files between host and client
Good afternoon!
I have successfully installed VMware server on my machine and set up a virtual machine, powering Windows XP for study issues (emulation via wine does not do the trick for me). The virtual machine runs fast and stable but does not meet my requirements unless I have two issues faced:
First:
How to access a USB pendrive monunted by the host system properly within the client?
Second:
What is the best way to share file system space between host and client? Should I set up a Samba share which is accessible for both host and client or is it save to grant my VM access to my physical hard disc as a whole (using it as a partition)?
Thanks for answers in advance, I have still quite a lot to learn, when it comes to VMs.
Regards,
~cgDo not setup your VMware to be able to access your physical disk as a whole. This would have you mounting the filesystem twice, corrupting it in the process.
You /can/ setup VMware with Sharing Folders that lets you share your filesystem (either / or just /home or something else) and that is what I would recommend.
As for accessing the pen drive from both operating systems at once, I'd say use the same Sharing Folders method. I always share /mnt so that I can access my cdrom/USB/etc from the vmware OS.
The sharing folders is basically the same as a samba share, but uses vmware's own method (HGFS). Samba is more secure (if you are worried about your VMware OS breaking from it's shell and attacking your real filesystem, which is unlikely). You need the vmware tools installed to make use of it. -
Time sync between server and client
Hi guys,
I have written a chess server and client. My next step is to implement a clock which will be used in timed games, however, I am not sure of the best solution. I can't think of a reliable method to keep the client's time in sync with the servers because the event latency varies between individual events and clients.
My first idea was to send a 'tick' event every second but I dont think this the best solution. I have seen many applet based clients which have timers, such as Yahoo chess.
I know this question is a little vague, I can give more detail if needed.
Thanks,
AlexTo prevent client-side cheating, the server should keep the
"official" clock. Every so often (perhaps when a move gets made?),
notify both clients of the official time. Clients count seconds from
that official time.
This is a suboptimal solution because it leaves clients vulnerable
to network lag. I can't think of any other solution that doesn't give
clients some responsibility for tracking time, though, and that's a
big security hole.
If you're willing to open that hole, have each client report back to
the server the elapsed local time from when they recieved the
last move to when they made their move. Then update the other
client's clock accordingly. -
Hello there
I have a problem with my windows media player while using server and client connection by using TCP/IP connection. So when I play a video using Windows Media Player in LabVIew there isn't any sound come out but when I'm playing a video by a Windows Media Player only the sound will come out. Can you help me solve this problem?
I also upload the vi as the reference.
The username for the client is ihsanhaikalz and the password is ganteng
Thanks
Attachments:
Client Remote.vi 746 KB
Server Remote.vi 1433 KBHi ican,
I was looking at your VI's but I cannot seem to pinpoint exactly where you are using Windows Media Player. In order to more quickly assist you, could you please recreate this issue more concisely in a smaller set of VIs. Also, were you able to get sound when you did not use the TCP/IP connection and simply played the files in LabVIEW?
I noticed in a few places that you were using the Play Sound File.VI from the Graphics and Sounds palette. Is that what you are refering to? I noticed there that the file path that you have designated for the song is simply the song title. Instead, this should be a path to where the song is located on your computer.
Also, if you are planning on using Windows Media Player, have you considered using the ActiveX commands for Windows Media Player? Here are a few examples if you are unfamiliar with this functionality.
Example 1 and Example 2.
I hope this helps!
Kim W.
Applications Engineer
National Instruments -
Transfer files between ASA and a host across a VPN
Hello Guys,
I have a Remote Access VPN between an ASA and a Windows PC, the issue that I'm seeing is that I can't transfer files between the ASA and my PC across the VPN.
The first time I thought that because the size of the file and some issue with my ADSL service bandwidth could be the problem. However, I tried to copy the running config of the ASA to my PC and is also impossible. I received this error:
ASA# copy running-config tftp:
Source filename [running-config]?
Address or name of remote host []? 10.10.10.2 ----> This is the address of my PC over the VPN tunnel
Destination filename [running-config]? ASA-Config04032014
Cryptochecksum: f5a9f8cb 9f63b2e5 e8c99e36 9498cb50
%Error writing tftp://10.10.10.2/ASA-Config04032014 (Timed out attempting to connect)
Does anybody had this kind of problem before?
Thanks in advance,I was wondering if I transfer files between a PC and Mac via Ethernet cable can I reverse the transfer from a Mac to a Pc?
Yes. Start Windows File Sharing on the Mac and then access it on the PC.
(47464) -
Connection between server and client using thread
hi
i am new to java..i hav done a program to connect a server and client...but i hav not used threads in it..
so please tel me how to use threads and connect server and client..i tried it out not getin...i am havin thread exception...my program is as shown below
SERVER PRG:
import java.io.*;
import java.net.*;
public class Server{
String clientsen;
String serversen;
public void go(){
try{
ServerSocket serverSock=new ServerSocket(6789);
while(true) {
Socket sock=serverSock.accept();
BufferedReader inFromClient=new BufferedReader(new InputStreamReader(sock.getInputStream()));
BufferedReader inFromuser=new BufferedReader(new InputStreamReader(System.in));
DataOutputStream outToClient=new DataOutputStream(sock.getOutputStream());
clientsen=inFromClient.readLine();
System.out.println("From Client: "+clientsen);
System.out.println("Reply mess to Client");
serversen=inFromuser.readLine();
outToClient.writeBytes(serversen+'\n');
} catch(IOException ex) {
ex.printStackTrace();
public static void main(String[] args) {
Server s = new Server();
s.go();
CLIENT PRG
import java.lang.*;
import java.util.*;
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.net.*;
import java.lang.Thread;
import java.applet.Applet;
class Client1
public static void main(String argv[]) throws Exception
String Sen;
String modsen;
BufferedReader inFromUser=new BufferedReader(new InputStreamReader(System.in));
Socket clientSocket=new Socket("192.168.1.2",6789);
DataOutputStream outToServer=new DataOutputStream(clientSocket.getOutputStream());
BufferedReader inFromServer=new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
System.out.println("Enter the mess to be sent to server");
Sen=inFromUser.readLine();
outToServer.writeBytes(Sen + '\n');
modsen=inFromServer.readLine();
System.out.println("FROM SERVER: " +modsen);
clientSocket.close();
please send me the solution code for my problem...sorry for inconvenience...
SERVER PROGRAM
*import java.io.*;*
*import java.net.*;*
*public class MyRunnable implements Runnable*
*public void run() {*
*go();*
*public void go(){*
*try {*
*String serversen;*
*ServerSocket welcomeSocket=new ServerSocket(6789);*
*while(true)*
*Socket connectionSocket=welcomeSocket.accept();*
*//BufferedReader inFromClient=new BufferedReader(new //InputStreamReader(connectionSocket.getInputStream()));*
*System.out.println("enter the mess to be sent to client");*
*BufferedReader inFromuser=new BufferedReader(new InputStreamReader(System.in));*
*DataOutputStream outToClient=new DataOutputStream(connectionSocket.getOutputStream());*
*//clientsen=inFromClient.readLine();*
*//System.out.println("From Client: "+clientsen);*
*//System.out.println("Reply mess to Client");*
*serversen=inFromuser.readLine();*
*outToClient.writeBytes(serversen+'\n');*
*} catch(IOException ex) {*
* ex.printStackTrace();*
*class Server1{*
*public static void main(String argv[]) throws Exception*
*Runnable threadJob=new MyRunnable();*
*Thread myThread=new Thread(threadJob);*
*myThread.start();*
*}*CLIENT PROGRAM
import java.io.*;
import java.net.*;
class Client2
public static void main(String argv[]) throws Exception
//String Sen;
String modsen;
//BufferedReader inFromUser=new BufferedReader(new InputStreamReader(System.in));
Socket clientSocket=new Socket("192.168.1.2",6789);
//DataOutputStream outToServer=new DataOutputStream(clientSocket.getOutputStream());
BufferedReader inFromServer=new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
//System.out.println("Enter the mess to be sent to server");
//Sen=inFromUser.readLine();
// outToServer.writeBytes(Sen + '\n');
modsen=inFromServer.readLine();
System.out.println("FROM SERVER: " +modsen);
clientSocket.close();
this is the code which i hav used using thread but i am gwetin error..ts is the error
Exception in thread "main" java.lang.NoSuchMethodError : Main -
How to transfer file from server to client
I am making a server printer where all the system can take print out from the Printer installed on the server
i am not able to send file from the client to the Server. I am Attaching the code Please Help me it is my college project.
Server.java*
import java.io.*;
import java.lang.*;
import java.net.*;
import java.util.*;
import java.io.File;
class Server
static final int PORT = 26548; //Server Listening port
static String path;
public static void main(String args[])
System.out.println("Starting Server");
receive();
public static void receive()
while ( true )
try
//Create a socket
ServerSocket srvr = new ServerSocket(PORT);
Socket skt = srvr.accept();
String clientname= skt.getInetAddress().getHostAddress();
int clientport=skt.getPort();
long time = System.currentTimeMillis();
path= "C:\\Ankit Gupta\\Programs\\"+clientname+"\\"+time+" test.pdf";
System.out.println("File Recieved from : "+clientname+" : "+clientport);
//HttpServletRequest req;
//String remoteHost = req.getRemoteHost();
//String adr = getRemoteUser();
FileOutputStream fos = new FileOutputStream(path);
BufferedOutputStream out = new BufferedOutputStream(fos);
BufferedInputStream in = new BufferedInputStream( skt.getInputStream() );
//Read, and write the file to the socket
int i;
System.out.println("Receiving data...");
while ((i = in.read()) != -1)
out.write(i);
out.flush();
in.close();
out.close();
skt.close();
srvr.close();
System.out.println("Transfer complete.");
printfile();
catch(Exception e)
System.out.print("Error! It didn't work! " + e + "\n");
try
Thread.sleep(1000);
catch (InterruptedException ie)
System.err.println("Interrupted");
} //end infinite while loop
public static void printfile()
delete();
public static void delete()
try
Thread.sleep(5000);
catch (InterruptedException ie)
System.err.println("Interrupted");
System.out.println("Deleting file");
File f = new File(path);
// Make sure the file or directory exists and isn't write protected
if (!f.exists())
throw new IllegalArgumentException("Delete: no such file or directory: " + path);
if (!f.canWrite())
throw new IllegalArgumentException("Delete: write protected: "+ path);
// If it is a directory, make sure it is empty
if (f.isDirectory())
String[] files = f.list();
if (files.length > 0)
throw new IllegalArgumentException("Delete: directory not empty: " + path);
// Attempt to delete it
boolean success = f.delete();
if (!success)
throw new IllegalArgumentException("Delete: deletion failed");
Client.java_
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
import java.util.*;
import java.net.*;
public class Client extends JFrame {
static final int PORT = 26548; //Server Listening Port
static File file;
static final String HOST = "10.35.9.152";//Server Address
JTextField m_fileNameTF = new JTextField(25);
JFileChooser m_fileChooser = new JFileChooser();
Client() {
m_fileNameTF.setEditable(false);
JButton openButton = new JButton("Open");
openButton.addActionListener(new OpenAction());
JPanel content = new JPanel();
content.setLayout(new FlowLayout());
content.add(openButton);
content.add(m_fileNameTF);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setContentPane(content);
this.setSize(400,200);
class OpenAction implements ActionListener {
public void actionPerformed(ActionEvent ae) {
int retval = m_fileChooser.showOpenDialog(Client.this);
if (retval == JFileChooser.APPROVE_OPTION) {
file = m_fileChooser.getSelectedFile();
m_fileNameTF.setText(file.getAbsolutePath());
send(file.getAbsolutePath());
public static void main(String[] args) {
JFrame window = new Client();
window.setVisible(true);
public static boolean send( String filename )
try
System.out.println("Connecting to Server");
Socket skt = new Socket(HOST, PORT);
//Create a file input stream and a buffered input stream.
FileInputStream fis = new FileInputStream(filename);
BufferedInputStream in = new BufferedInputStream(fis);
BufferedOutputStream out = new BufferedOutputStream( skt.getOutputStream() );
//Read, and write the file to the socket
int i;
System.out.println("Connected to Server");
System.out.println("Sending data...\n");
while ((i = in.read()) != -1)
out.write(i);
//System.out.println(i);
System.out.println("Transfer complete.");
//Close the socket and the file
out.flush();
out.close();
in.close();
skt.close();
return true;
catch( Exception e )
send(file.getAbsolutePath());
return false;
}I am making a server printer where all the system can take print out from the Printer installed on the server
i am not able to send file from the client to the Server. I am Attaching the code Please Help me it is my college project.
Server.java*
import java.io.*;
import java.lang.*;
import java.net.*;
import java.util.*;
import java.io.File;
class Server
static final int PORT = 26548; //Server Listening port
static String path;
public static void main(String args[])
System.out.println("Starting Server");
receive();
public static void receive()
while ( true )
try
//Create a socket
ServerSocket srvr = new ServerSocket(PORT);
Socket skt = srvr.accept();
String clientname= skt.getInetAddress().getHostAddress();
int clientport=skt.getPort();
long time = System.currentTimeMillis();
path= "C:\\Ankit Gupta\\Programs\\"+clientname+"\\"+time+" test.pdf";
System.out.println("File Recieved from : "+clientname+" : "+clientport);
//HttpServletRequest req;
//String remoteHost = req.getRemoteHost();
//String adr = getRemoteUser();
FileOutputStream fos = new FileOutputStream(path);
BufferedOutputStream out = new BufferedOutputStream(fos);
BufferedInputStream in = new BufferedInputStream( skt.getInputStream() );
//Read, and write the file to the socket
int i;
System.out.println("Receiving data...");
while ((i = in.read()) != -1)
out.write(i);
out.flush();
in.close();
out.close();
skt.close();
srvr.close();
System.out.println("Transfer complete.");
printfile();
catch(Exception e)
System.out.print("Error! It didn't work! " + e + "\n");
try
Thread.sleep(1000);
catch (InterruptedException ie)
System.err.println("Interrupted");
} //end infinite while loop
public static void printfile()
delete();
public static void delete()
try
Thread.sleep(5000);
catch (InterruptedException ie)
System.err.println("Interrupted");
System.out.println("Deleting file");
File f = new File(path);
// Make sure the file or directory exists and isn't write protected
if (!f.exists())
throw new IllegalArgumentException("Delete: no such file or directory: " + path);
if (!f.canWrite())
throw new IllegalArgumentException("Delete: write protected: "+ path);
// If it is a directory, make sure it is empty
if (f.isDirectory())
String[] files = f.list();
if (files.length > 0)
throw new IllegalArgumentException("Delete: directory not empty: " + path);
// Attempt to delete it
boolean success = f.delete();
if (!success)
throw new IllegalArgumentException("Delete: deletion failed");
Client.java_
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
import java.util.*;
import java.net.*;
public class Client extends JFrame {
static final int PORT = 26548; //Server Listening Port
static File file;
static final String HOST = "10.35.9.152";//Server Address
JTextField m_fileNameTF = new JTextField(25);
JFileChooser m_fileChooser = new JFileChooser();
Client() {
m_fileNameTF.setEditable(false);
JButton openButton = new JButton("Open");
openButton.addActionListener(new OpenAction());
JPanel content = new JPanel();
content.setLayout(new FlowLayout());
content.add(openButton);
content.add(m_fileNameTF);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setContentPane(content);
this.setSize(400,200);
class OpenAction implements ActionListener {
public void actionPerformed(ActionEvent ae) {
int retval = m_fileChooser.showOpenDialog(Client.this);
if (retval == JFileChooser.APPROVE_OPTION) {
file = m_fileChooser.getSelectedFile();
m_fileNameTF.setText(file.getAbsolutePath());
send(file.getAbsolutePath());
public static void main(String[] args) {
JFrame window = new Client();
window.setVisible(true);
public static boolean send( String filename )
try
System.out.println("Connecting to Server");
Socket skt = new Socket(HOST, PORT);
//Create a file input stream and a buffered input stream.
FileInputStream fis = new FileInputStream(filename);
BufferedInputStream in = new BufferedInputStream(fis);
BufferedOutputStream out = new BufferedOutputStream( skt.getOutputStream() );
//Read, and write the file to the socket
int i;
System.out.println("Connected to Server");
System.out.println("Sending data...\n");
while ((i = in.read()) != -1)
out.write(i);
//System.out.println(i);
System.out.println("Transfer complete.");
//Close the socket and the file
out.flush();
out.close();
in.close();
skt.close();
return true;
catch( Exception e )
send(file.getAbsolutePath());
return false;
} -
Difference between Server and Client Installation of ODI
Hi All,
i am new to ODI, recently i try to install ODI it has three Option 1.Complete 2. Client 3. Server
i installed Server after installation it contains only Agent. and i tried Client option end of the installation i saw all the ODI components including Agent. i am bit confusion about when do i need to use ODI Server and when do i need to use ODI Client and what is the purpose of both
Thanks
Knidhi
Edited by: knidhi on Oct 6, 2009 2:38 PM
Edited by: knidhi on Oct 6, 2009 2:38 PMHi,
Trying to help :-
What roll ODI Server play in the entire ODI ArchiTechture?
ODI Server will act as a cenratilsed system for all your ODI clients
You can call this ODI server as an execution server for all your ODI clients .
When this is needed ?
(some real time examples to explain the need)
If there is team need to work on a cenratlised application ...
say MachineDev1 (developer1) , MachineDev2 (developer2) .. and MachnAnlayst1 (An1), MachnAnlayst2 (An2) need to work on an single application
The developer1 will create projects based upon his machine ,
The developer2 will create projects based upon his machine ,
and the analysts/operators will try to execute the application from their machines with their machine agents.
the application will reffer the paths for temperory/supporting files/folders on the agent machines which they are running ...
this will be a difficult task, if you dont have a similar folder sturcture in all of your machines ..
In order to avoid this conflict you need a centralised system for running your jobs from different machines
say SVR (from your example). put all the supporting files/folders in this system while developing projects each develpoer need to consider this server as an execution server.
so if any execution comes from any clients with this agent, it will reffer to the machine SVR folders and you can have a centralaised enviorment to work for different machines.
Regards,
Rathish -
How can I transfer file between PC and iPhone?
iPhone does not show in MyComputer after connected to PC. How can I transfer file to/from PC?
iPhone does not support disk mode, so doesn't show in My Computer. You can transfer files through iTunes (Apps tab in the main window) if you have an app on the iPad that works with that kind of file. If you don't have an app, GoodReader is a good choice because it handles many different file types.
Alternatively, you could user Dropbox (cloud storage) which will allow you to share files on your PC with the iPad. -
How to transfer file from server to client pc with out client unknown
Hi,
Fill some form ,then submit, that time generate one xml file put in server,then the same file transfer to client machine fixed path(c:/download/) with out any pop up message..
Pls help ..
pls give some code idea
Thanks in Advance
karthikThanks
Vendor application only call the URL with parameter
to get the File in secured manner. OK.
the Vendor
application may be in java or not..NET ?
so in that case
also do.so what ? is your problem solved or not ?
you may need to make webservices.
Maybe you are looking for
-
Satellite P300D-10V shut down when playing game
Hello everyone I bought a Sat P300d-10v last month. At first it was very good but it was always very hot. I thougt that the cause is the weather but it wasn't. When I try to play a game (cod4-prostreet- even easy dos games) my device always shuts dow
-
Need help on getting the column names of Tabletype
I have a table Mapping with the following values: This Mapping table contains the table names (in Tabname) and the column names(colname) of various tables and values(ValuesTobeFilled) for the columns. I have to insert into the tables present in the T
-
First crashed under Firefox 9, then installed 14, still crashes. Will not allow me to update add ons. Uninstalled Firefox, downloaded 14 and reinstall, still crashes. Attaching last crash report. Problem started one day ago. If I shut down my compute
-
Updated my itouch gen 4 32g to Ios 5 and now itunes can't find music files
I did a search and could not find anything about my specific issue. I was hoping to get some help if possible. So I did the update to IOS 5 and everything went fine..........except for one thing. I have all my music stored on an external hard drive
-
Error when opening Photoshop CS4
I own a new dell laptop with Window 7 OS. About 1 month after I installed Adobe CS4, I started getting an error everytime I opened up Photoshop: "Photoshop has encountered a problems with the display driver, and has temporarily disbled GPU enhancemen