Problem with Sending files over Sockets

Hi. I have a problem when I try to send files over sockets. When I send text files it works well but when I try to send .jpg or other kind of files it doesn't work well because some characters are wrong, I hope you can help me.
Here is my code:
//Sender code
import java.io.*;
import java.net.*;
class Servidor{
     Servidor(){
          try{
               String arch="art.jpg";
               ServerSocket serv=new ServerSocket(125);
               Socket socket=serv.accept();
               System.out.println("Conectado");
               int c;
               BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
               FileInputStream fis=new FileInputStream(arch);
               File f=new File(arch);
               bw.write(""+f.length());
               bw.newLine();
               bw.flush();
               System.out.println("Escribiendo");
               while((c=fis.read())!=-1){
                    bw.write(c);
               bw.flush();
               fis.close();
               System.out.println("Terminado");
               while(true){
          }catch(Exception e){
               System.out.println(e);
     public static void main(String arg[]){
          new Servidor();
//Client code
import java.io.*;
import java.net.*;
class Cliente{
     Cliente(){
          try{
               Socket socket=new Socket("localhost",125);
               System.out.println("Conectado");
               BufferedReader br=new BufferedReader(new InputStreamReader(socket.getInputStream()));
               long tam=Long.parseLong(br.readLine());
               long act=0;
               FileOutputStream fos=new FileOutputStream("resp.jpg");
               System.out.println("Recibiendo: "+tam);
               while(act<tam){
                    fos.write(br.read());
                    act++;
               System.out.println("Terminado: "+act+" / "+tam);
               fos.close();
          }catch(Exception e){
               System.out.println(e);
     public static void main(String arg[]){
          new Cliente();
}

I don't think you want BufferedReader and OutputStreamWriter, you want ByteArrayOutputStream and ByteArrayInputStream . The problem is that you are sending jpegs (binary data) as text.

Similar Messages

  • Problem in sending file thru sockets

    Hello
    i am sending a file thru sockets....the file reaches the server but there is loss of file contents. i do not recieve the entire file. whats wrong?
    my Server code
    //package socket_try ;
    // SimpleServer.java: a simple server program
    import java.net.*;
    import java.io.*;
    import javax.comm.*;
    import java.util.*;
    public class Server
    public static final int BUFFER_SIZE = 1024 * 50;
    static CommPortIdentifier portId;
    static Enumeration portList;
    SerialPort serialPort;
    Thread readThread;
    public static void main(String[] ar)
    byte[] buffer;
    buffer = new byte[BUFFER_SIZE];
    int port = 6666; // just a random port. make sure you enter something between 1025 and 65535.
    boolean portFound;
    try
    ServerSocket ss = new ServerSocket(port); // create a server socket and bind it to the above port number.
    System.out.println("Waiting for a client...");
    Socket socket = ss.accept(); // make the server listen for a connection, and let you know when it gets one.
    System.out.println("Got a client :) ... Finally, someone saw me through all the cover!");
    System.out.println();
    BufferedInputStream bin = new BufferedInputStream(socket.getInputStream());
    BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("c:\\SMS.txt"));
    int in;
    try
    int len = 0;
              while ((len = bin.read(buffer)) > 0) {
                   bos.write(buffer, 0, len);
                   System.out.print("#");
              bin.close();
              bos.flush();
              bos.close();
              socket.close();
    ss.close();
    catch(Exception x)
    x.printStackTrace();
    catch(Exception e)
    System.out.println("Exception : "+e);
    my client code
    import java.net.*;
    import java.io.*;
    public class Client
    public static final int BUFFER_SIZE = 1024 * 50;
    public static void main(String[] ar)
    int serverPort = 6666; // make sure you give the port number on which the server is listening.
    String address = "192.168.1.3"; // this is the IP address of the server program's computer. // the address given here means "the same computer
    as the client".
    int in=0;
    byte[] byteArray;
    byte[] buffer;
    buffer = new byte[BUFFER_SIZE];
    try
    InetAddress ipAddress = InetAddress.getByName(address); // create an object that represents the above IP address.
    System.out.println("Any of you heard of a socket with IP address " + address + " and port " + serverPort + "?");
    Socket socket = new Socket(ipAddress, serverPort); // create a socket with the server's IP address and server's port.
    System.out.println("Yes! I just got hold of the program.");
    // Get the input and output streams of the socket, so that you can receive and send data to the client.
    // Just converting them to different streams, so that string handling becomes easier.
    BufferedInputStream bis;
    BufferedOutputStream bos;
    bis = new BufferedInputStream(new FileInputStream("c:\\send.txt"));
    bos = new BufferedOutputStream(socket.getOutputStream());
    byte[] receivedData;
    int len = 0;
    while ((len = bis.read(buffer)) > 0)
    bos.write(buffer, 0, len);
    System.out.print("#");
         for(int y =0 ; y < buffer.length ; y++)
    char s =(char) buffer[y];
    System.out.println("character:"+s);
    bis.close();
    bos.flush();
    bos.close();
    socket.close();
    System.out.println("\nDone!");
    catch(Exception x)
    x.printStackTrace();
    } /* end of main */
    }/* end of class */
    what is wrong can please anyone tell me??????

    As I don't know how long a record is, that's not a very useful answer. How many bytes are you expecting and how many do you actually get?

  • Problem with sender file adapter

    Hi all,
    I am having a problem in reading file with complex structure,
    my structure is like this:
    Header - 1
    rows - 0 - unbound
    Footer 1
    In the recordset Structure - Header,1, Row,*, Footer,1
    The file is not being read, only if I cahnge the * to the exact number of roes type ROw it is working,
    Thnaks,
    Naama.

    Hi,
    I tried it on a simple file and it works,
    But for some reason it doesnt work on my file, I think it because the structure of the segments.
    the first line is the header and its key value is H u2013 it should appear once in the file
    the second line is the header2 and its key value is D u2013 it should appear once in the file
    the 3+4 lines is the details and its key value is L u2013 it should appear * times
    the last line is the footer and its key value is D u2013 it should appear once in the file
    Header1.
    T   H T150380149462.DAT                30/07/08 13:05:04 7 014946/2i`cpei driaz
    Header2.
    T   D  D06AA038H08052587014946245-519-60 045000WKMHDN41BP6U122056  0807230807236915    1000000      000000000000000000H,28910,22040             2828910R0000000200000000000000004830800100000001P
    Details.
    T   D  D06AA038_L_08052587014946210128910R00010020002000  
    T   D  D06AA038_L_08052587014946210128910R00010020002000  
    Footer.
    T   T T150380149462.DAT                00008  014946/2*** seq ****
    I think that because the beginning of header2 and detail is the same it does not work,
    Any Ideas?

  • Problem with sending attachments over 1mb

    anyone faced that
    There may be a problem with the mail server or network. Check the settings for account “Gmail” or try again.
    The server error encountered was: The connection to the server “pop.gmail.com” on port 995 timed out.
    Checked already many options i.e. 465, ssl, no ssl etc.. seems nothing works
    No problem on PC with the same account

    lizak wrote:
    anyone faced that
    There may be a problem with the mail server or network. Check the settings for account “Gmail” or try again.
    The server error encountered was: The connection to the server “pop.gmail.com” on port 995 timed out.
    Checked already many options i.e. 465, ssl, no ssl etc.. seems nothing works
    No problem on PC with the same account
    welcome to discussions, lizak !
    have you tried zipping the file(s) ?

  • Problem with Sender File Content conversion

    Hi everybody,
    I have a flat file with the following structure:
    PR1xxxx
    CL1.1xxx
    ALxxx
    PTxxx
    PTxxx
    PTxxx
    CL1.2xxx
    ALxxx
    PTxxx
    PTxxx
    Cl1.3xxx
    PR2xxx
    CL2.1
    Alxxx
    PTxxx
    Ptxxx
    CL2.2xxx
    ALxxx
    PR3xxx
    I need to send an IDOC (ORDERS05) per CL and I also need that the PR goes together with the CL.
    Something like that:
    IDOC 1
    PR1xxx
    CL1.1xxx
    ALxxx
    PTxxx
    PTxxx
    PTxxx
    IDOC 2
    PR1xxx
    CL1.2xxx
    ALxxx
    PTxxx
    PTxxx
    IODC 3
    PR2xxx
    CL2.1xxx
    The problem is that I am not able to attach the PR with each CL because the PR is written once at the beginning.
    I have tested all the posibilities in the content conversion area but I don`t find the way to achiveve that.
    Maybe, Have I to do something in the mapping program?
    Nested substructures are possible in the File Content Conversion?
    Any idea?
    Thanks for everything

    We can handle this in mapping as follows
    Crate an Intermediate structure Identical to your input structure. Just you need to add an sub element (Let’s say "T" to your CL node.
    This sub element will be used to remember CL node belongs to which PR node.
    Map your Input structure to Intermediate structure.
    While mapping PR Node of input to PR Node of Intermediate structure use a user defined function as follows
    Integer ii;
    GlobalContainer g;
    g=container.getGlobalContainer();
    Object o= g.getParameter("_&HLID");
    if (o==null) ii=new Integer(0);
    else
    ii =(Integer)o;
    ii =new Integer(ii.intValue()+1);
    g.setParameter("_&HLID",ii);
    Use another user defined function to retrieve the value of this _&HLID and put it to T as follows:
    GlobalContainer g;
    g=container.getGlobalContainer();
    Object o= g.getParameter("_&HLID");return o.toString();
    For all other fields just do a 1:1 mapping.
    Then
    Map your intermediate structure to destination structure (IDOC)
    Here the only catch is:
    For populating the value of PR for each CL
    Pass both the element T and the element of PR from which you want to pick the value to a user-defined function (raise the context of both elements to the top node).
    In array a we have the value of T
    In array b we have the value of element of PR
    int j=0;
    for(int k=0;k<b.length;k++){
    for (int i=0;i<a.length;i++)
         if (a<i>.equals(new Integer(j+1).toString())){
              System.out.println(b[j]);
         j=j+1;
    Hope this takes care of your problem.
    If you don't get anything please get back to me.
    Abinash

  • Problem with sending message over network

    ssc = (ServerSocketConnection) Connector.open("socket://:5000");
    sc = (SocketConnection) Connector.open("socket://localhost:5000");my app works over the network in the emulator, but wont work on real devices, or do i just need to pair somehow with the device before i start.
    are the above lines okay is it meant to be localhost that's what they use in the socket part of the network demo that comes with the wireless toolkit, anyone have any ideas why that app doesnt seem to work for me on the real devices.
    i know for bluetooth you have to pair with the device before running the application do you have to do something like this

    Vishal,
    Couple of questions. 
    How are you sending this message.  Is it a message that you create and send Internally with an attachment.
    As you reply me, please also check if the <b>Attachments folder</b> has been set under <b>Administration > System Initialization > General Settings.....Path Tab</b>
    SBO tries to copy the attachment from the location you select to the Path defined for Attachments.
    Let me know
    Suda

  • Problem with Sender File Content Conversion Communication Channel

    Hi All,
    I am using XI 3.0--SP 16.
    I have configured a Sender communication channel with File Content Converison which takes up a Fixed length text file and converts to XML.
    My scenario is that I have some 'n' files, out of which one file has error in content conversion.
    In a normal scenario I would expect other files to get processed, but they are not.
    I can correct the error or even discard the error file. But I am unable to understand why XI is not processing the rest of the good files.
    Thanks in advance.
    Regards.,
    Sudharshan

    Hi,
    @Renjith
    The QOS is EO, thats why I am wondering why it is not picking the rest of the good ones
    Regards,
    Sudharshan

  • Problem with receiving message over socket

    class TCPClient5 {
    public static void main(String argv[]) throws Exception
    java.io.InputStream s = null;
    java.io.InputStreamReader r = null;
    try {
    URLConnection uc = new URL("http://www.countryflower.com/Country_Flower_Home_Pic.jpg").openConnection();
    s = uc.getInputStream();
         System.out.println(uc.getContentLength());
    int x = uc.getContentLength();
    BufferedInputStream buffer = new BufferedInputStream(s);
    File f = new File("c:\\Users\\dell\\Desktop\\image\\image.jpg");
    DataOutputStream outdata = new DataOutputStream(new FileOutputStream(f));
    int n = 0;
    while(true) {
    n = s.read(byte[x] buffer,0,buffer.length); ----- here I am getting error
    if (n == -1) break;
    if (n == 0) {Thread.sleep(50); continue;}
    outdata.write( buffer,0,buffer.length);
    outdata.close();
    finally {
    //if (b != null) b.close();
    if (r != null) r.close();
    if (s != null) s.close();
    In above code I am getting error .................
    I am unable to receive message from server..........Please help me with code

    n = s.read(byte[x] buffer,0,buffer.length); ----- here I am getting errorHere we are unable to read your mind. What error? The syntax you've typed isn't correct, is that really what you have?
    if (n == -1) break;
    if (n == 0) {Thread.sleep(50); continue;}'n' can never be zero. Omit this line.
    outdata.write( buffer,0,buffer.length); That should be outdata.write(buffer, 0, n);

  • Adobe Send - Problem with uploading files. When is this going to get fixed?

    When is the Adobe Send problem with uploading files going to get fixed. Similar to others - I have tried and tried to make Adobe Send work and get an error. I have tried to upload the file and it looks like it uploads and then - it is nowhere to be found.
    I then go to Adobe Send Now and it works fine.

    The problem is the same as described in other similar threads.
    I have a 57 MB PowerPoint file I am trying to send using Adobe Send. I go through the normal steps to identify the file and select recipients and then send the file. After the file completes the upload - an error saying there was a problem comes up and the file is not uploaded.
    I have tried to upload the file to the site with similar results - error and the file doesn't go.
    I can go to the old SendNow site and it works flawlessly.
    If I need to get screenshots - let me know. There are several other threads describing this same problem. It isn't something new or not heard of before.
    Sent from my iPod

  • Have been trying all weekend to upload Jpegs- either Send does not work or shows files uploading then shows error- never had this problem with Send Now-16 images total size 92MB-largest image 13MB

    Have been trying all weekend to upload Jpegs- either Send does not work or shows files uploading then shows error- never had this problem with Send Now-16 images total size 92MB-largest image 13MB

    Hi Ciaran19,
    Are you sending files from the Adobe Send interface, Adobe Reader, or the Outlook plug-in?
    Have you checked to see whether the files that you're sending appear in the Recent Files/Sent Files list when you're logged on to https://cloud.acrobat.com? (It could be that they're uploading, but not being sent.)
    It would also be worthwhile to send the files in smaller batches, to see whether a particular file or files is problematic, and causing the error.
    Please let us know how it goes. If you're still having trouble, please let us know where you're sending from, and whether you're able to send the files in smaller batches. It would also be helpful to know the exact error message that you're receiving.
    Best,
    Sara

  • Error: There is a problem with the file and it cannot be copied

    I've been trying to copy (and essentially move) the contents of an NTFS-formatted external HDD to my iMac's internal HDD so I can then format the external HDD to Mac OS Extended. However, when I simply try to drag and drop, I get an error during the transfer that states:
    There is a problem with the file and it cannot be copied.
    I tried a basic cp command in Terminal to copy all contents of the external HDD to a folder on my iMac's desktop, and found that while there were no errors, there were many individual files missing full chunks of data (ie. original file would be 4GB on my external HDD, but only 350MB on my desktop).
    Any ideas on how I can successfully copy a large amount of data (approx. 170GB) from my external HDD to my internal HDD while avoiding this error, so I can ultimately format my external HDD to Mac OS Extended? ANY help is greatly appreciated.

    That's not a good error to see. It indicates something is very wrong. Pulled out of an old programming header file:
    ioErr = -36, /*I/O error (bummers)*/
    If Apple labelled it "bummers," they had a good reason! Unfortunately, that doesn't bode well for you.
    Try running Disk Utility again. Keep repairing over and over until one of two things happens: 1) Disk Utility says no repair was needed, or 2) Disk Utility reports the same error in two sequential repair sessions and is unable to repair it both times.
    If you hit the second case, or if you hit the first but still can't copy files, then you've got two basic options:
    = Buy a third-party disk utility or two and try them. Try TechTool as a first choice.
    = Recover what files you can and write the rest off as gone.
    = Send your drive to a data recovery service and hope they can extract more than you can.
    Of course, none of this is necessary if you have a backup of the contents of that hard drive. (If you don't, this is your learning experience. Once bitten, twice shy, so they say.) Also, regardless of the outcome, once you've got your data or have decided it's gone, you're going to want to wipe that drive completely clean. Reformat the drive with Disk Utility, then when it's done, select the drive in Disk Utility and hit command-i. (Don't select the new volume you just created on that drive, select the drive itself. Mine looks like "232.9 GB Hitachi ..." with the volume name indented underneath.) Look for an item that says S.M.A.R.T. Status, and if it doesn't say Verified, you might as well throw out the drive. Don't trust any more data to it.
    If all appears safe, you can start moving data back onto it. But, as always, make sure you have a backup of everything!

  • Mail and iPhoto Problems with sending photos.

    Mail and iPhoto Problems with sending photos.
    I have this problem that started a while ago and seems to be getting worse.
    Here are the different scenarios.
    -If I try to share a photo to email within iPhoto, it will insert the image file name in the mail message, but no image icon or opened image. In iPhoto Preferences under General I have chosen to use Email Photos using Mail.
    -If I choose to use iPhoto to send the photo, it will compose the message and the photo is viewable. If I send the message i can view the photo within the email I sent to myself. Nothing happens when I double click on the photo in the Mail message. Nothing happens when i control click on the photo in the mail message. Nothing happens when I try to drag the photo to the desktop from the mail message. When I try to save attachments from the email and choose a place to save it, the save button is grayed out and it cannot be saved. When I check the mail message it says there is an attachemnt but there is no file size listed.
    -If I use the stationary within Mail app I cannot drag a photo into the placeholder, I get a circle with a line through it symbol when I try. It happens if I try to drag a photo from the desktop or from the media browser within Mail app.
    -If I drag the photo to the desktop from iPhoto, I can double click it on the desktop and it will open in Preview.
    -If I then control click on the same photo on the desktop and scroll to share/email, the generic photo icon will be inserted in the mail message. If i double click the photo icon in the mail message  I get a message it can't be opened because it is empty.
    -If I drag that same image to the mail message body the same thing happens.
    -If I send that email to someone they cannot open the image file.
    What I can do:
    - I can drag that same image file on the desktop to my dropbox folder and  it will upload. From there I can go on my iPad and download the photo and send it through email just fine.
    -I can open the same image file on my desktop in Preview, I can copy and paste it into a mail message and the image will be viewable in the mail message by me and by the recipient.
    -I can drag that same image on the desktop to my safari browser window and it will be viewable in the page. i can then copy and paste that image into a mail message and it is viewable in the message.  I can then send that email message to myself and i can control click on the image and get all my options. It also shows as an attachment with the size of the image file in the mail message.
    I can send that message to someone and they can see the photo and open it fine.
    -If I send that same email to me I can see the photo within the mail.  If I then drag that photo to the desktop I cannot use it again to put in an email as the same problem happens again.
    I have tried all scenarios in my user account, another users account and in a guest account. The same happens in all. I am guessing because of this it is not a corrupt preference file, unless all of the preference files are corrupt. The guest user account I added a new email account so it was brand new and still had the problem.
    I am stumped, all and any help is appreciated.

    Another problem that may be related….
    I have Snapz Pro. I used to be able to save the snaps to my desktop or a folder. Now when I take a screenshot and try to save the file to my desktop or a folder on my desktop I get this message  "Files cannot be created in the selected location. You do not have permission to write to the selected location.   Please choose a different location."  I have found that i can only save the file to the clipboard.   I have repaired permissions many times and still I have this problem.

  • Problem with Receiver File adapter

    Hi
    I have a problem with receiver file FTP adapter, while writting file in target folder, connection is failing, after retries, it writting file again. How to avoid this situation, is there any way to write the leftout part in the file.
    VS

    Hi
    Thank u all,  Problem is solved, i changed write mode to Over write existing file. It is working fine.
    VS

  • SFTP MGET of large files fails - connection closed - problem with spool file

    I have a new SFTP job to get files from an FTP Server.  The files are large (80mg, 150mg).  I can get smaller files from the ftp site with no issue, but when attempting the larger files the job completes abnormally after 2 min 1 sec. each time.  I can see the file is created on our local file system with 0 bytes, then when the FTP job fails, the 0 byte file is deleted.
    Is there a limit to how large an ftp file can be in Tidal?  How long an ftp job can run?
    The error in the job audit is Problem with spool file for job XXXX_SFTPGet and an exit code of 127 (whatever that is).
    In the log, the error is that the connection was closed.  I have checked with the ftp host and their logs show that we are disconnecting unexpectedly also.
    Below is an excerpt from the log
    DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.055 : Send : Name=SSH_FXP_STAT,Type=17,RequestID=12
    DEBUG [SSH2Channel] 6 Feb 2015 14:17:33.055 : Transmit 44 bytes
    DEBUG [ChannelDataWindow] 6 Feb 2015 14:17:33.055 : Remote window size decreased to 130808
    DEBUG [PlainSocket] 6 Feb 2015 14:17:33.071 : RepeatCallback received 84 bytes
    DEBUG [SSH2Connection] 6 Feb 2015 14:17:33.071 : ProcessPacket pt=SSH_MSG_CHANNEL_DATA
    DEBUG [SFTPMessageFactory] 6 Feb 2015 14:17:33.071 : Received message (type=105,len=37)
    DEBUG [SFTPMessageStore] 6 Feb 2015 14:17:33.071 : AddMessage(12) - added to store
    DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.071 : Reply : Name=SSH_FXP_ATTRS,Type=105,RequestID=12
    DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.071 : Send : Name=SSH_FXP_OPEN,Type=3,RequestID=13
    DEBUG [SSH2Channel] 6 Feb 2015 14:17:33.071 : Transmit 56 bytes
    DEBUG [ChannelDataWindow] 6 Feb 2015 14:17:33.071 : Remote window size decreased to 130752
    DEBUG [PlainSocket] 6 Feb 2015 14:17:33.087 : RepeatCallback received 52 bytes
    DEBUG [SSH2Connection] 6 Feb 2015 14:17:33.087 : ProcessPacket pt=SSH_MSG_CHANNEL_DATA
    DEBUG [SFTPMessageFactory] 6 Feb 2015 14:17:33.087 : Received message (type=102,len=10)
    DEBUG [SFTPMessageStore] 6 Feb 2015 14:17:33.087 : AddMessage(13) - added to store
    DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.087 : Reply : Name=SSH_FXP_HANDLE,Type=102,RequestID=13
    DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.087 : Send : Name=SSH_FXP_READ,Type=5,RequestID=14
    DEBUG [SSH2Channel] 6 Feb 2015 14:17:33.087 : Transmit 26 bytes
    DEBUG [ChannelDataWindow] 6 Feb 2015 14:17:33.087 : Remote window size decreased to 130726
    DEBUG [PlainSocket] 6 Feb 2015 14:17:33.118 : RepeatCallback received 0 bytes
    DEBUG [SFTPChannelReceiver] 6 Feb 2015 14:17:33.118 : Connection closed:  (code=0)
    ERROR [SFTPMessageStore] 6 Feb 2015 14:17:33.118 : Disconnected unexpectedly ( [errorcode=0])
    ERROR [SFTPMessageStore] 6 Feb 2015 14:17:33.118 : EnterpriseDT.Net.Ftp.Ssh.SFTPException:  [errorcode=0]
    ERROR [SFTPMessageStore] 6 Feb 2015 14:17:33.118 :    at EnterpriseDT.Net.Ftp.Ssh.SFTPMessageStore.CheckState()
    ERROR [SFTPMessageStore] 6 Feb 2015 14:17:33.118 :    at EnterpriseDT.Net.Ftp.Ssh.SFTPMessageStore.GetMessage(Int32 requestId)

    I believe there is a limitation on FTP and what you are seeing is a timeout built into the 3rd party application that tidal uses (I feel like it was hardcoded and it would be a big deal to change but this was before Cisco purchased tidal)  there may have been a tagent.ini setting that tweaks that but I can't find any details.
    We wound up purchasing our own FTP software (ipswitch MOVEit Central & DMZ) because we also had the need to host as well as Get/Put to other FTP sites. It now does all our FTP and internal file delivery activity (we use it's api and call from tidal if we need to trigger inside a workflow)

  • Problem with Offline Files with Cisco NSS322 (firmware 1.3)

    Hi
    We've recently bought a new NSS322 NAS box to replace an ageing Windows SBS 2003 file server. We've upgraded the firmware to 1.3, and begun moving files across from the Windows server to the new NAS box. However, we're having a problem with Offline Files on the NAS, as attempting to make directories available offline on Windows clients (only tried Vista Business 32-bit so far) we get loads of errors stating that these files cannot be made available offline "because they are in use" (or something like that).
    Any suggestions as to why this might be? It doesn't appear to affect all files, but most of them.
    I've read somewhere that the "allow oplocks" setting can affect this if disabled, but it is already enabled on the device, so this can't be the cause of the problem.
    Any help you could provide would be much appreciated, as at the moment this issue is rendering our NAS unusable as we rely heavily on the offline files functionality.
    Thanks in advance.
    I have some more information - this appears to be related to the ownership permissions of the files on the NAS. New files created on the NAS can be made available offline, and have the ownership of the person who created the file, however, the files we moved across from the server are all listed as being owned by the user "guest" (I think this may be related to the fact that when we moved the files over, the user was logged in as "admin" rather than a user on the AD Domain). I should be able to resolve this through changing the owner of the files on the NAS, but I can't seem to do this, as I get an "access denied" error each time I try to change ownership.
    Message was edited by: redcitrus
    Is there any chance someone's going to be able to help me with this? I've currently spent £500 on a box that I can't use. If it can't handle Offline Files satisfactorily, it's no use to us.
    I've been looking at this a bit more - if appears that each user can make files they have created available offline, but files created by other people cannot - the error message that appears is: "The process cannot access the file because it is being used by another process".
    I'm getting desperate here...can anyone help?
    Message was edited by: redcitrus

    Sorry, but I don1 speak very good english..
    I was Try this quick test: As a quick test, you can do a forward all and make sure you can get into the ftp server.
    but result it is to same.
    I think, that problem is in firmware, becasue I know more people who own this router with to same firmware version (2.0.1.3), and have they to same problem how I.
    I have DISABLED FIREWALL on my router and problem hold over.
    If I replace router Cisco Linksys WRVS4400N by Ovislink router or any other, issue (problem) already no is.
    Configuration in Cisco Linksys WRVS4400N and configurations in any other router is to same, but FTP connection via Cisco Lynksys always will crash.
    If I connect to any other FTP server, sometimes requieres from me ftp login and password. It is OK, but if I assign login and password, after connect me to this FTP server, i see folders and files on this server, but without reason connecting fall down.
    Few seconds later if I connect to the to same FTP server, sometime either not request login and password and connection fall down.

Maybe you are looking for

  • Profit Center & Segment wise payments

    1. Looking for a document for enhancement of profit center & segment wise payments in F110 Payment Programe. exit\BADI ? 2. What exit is sutable for automatic bank determination in F110 payment programe

  • Master Boot Record is greyed out, so how to use?

    How do I use Master Boot Record (in Mountain Lion, to partition an external Seagate Backup+ hard drive) when it is greyed out and I can't choose it? I tried turning off Time Machine, but that didn't do anything. I also tried installing various Seagat

  • Cannot install upgrade for iweb

    I have upgraded my iMac last December and bought the new 27inch one. It came with iWeb, that I have been enjoying for years, and used it to upload my Web pages. I also transfer my self in to iCloud few months ago, and that also seemed to be well. How

  • Marketplace error

    I'm getting an error when I try to download from marketplace on my lumia 820. despite hardly downloading anything, and having all photo, music etc storage set to the sd card the marketplace wont let me download asphalt 7 at 828mb when the phone claim

  • What's with this message?

    There are four of use who us the iMac we have at home. All four of us have iPods that we will connect to the computer using our own individual account. I often get the following message and I'm wondering why? Example: Yesterday I hooked up my iPod to