Synergy+ between PC & Mac copy/paste problem
Solution 1
This is actually a known problem, and has been for some time. You can find the bug report here. It is mile-stoned to be fixed in the 1.3.5 release of Synergy+, which has now been merged with the original Synergy project.
Solution 2
I reached this page from Google after encountering this issue in Synergy 1.4.10, with my MacBook Pro as the server and my Windows 7 64-bit machine as the client. I was able to copy content from the Windows machine and paste it on my Mac, but I couldn't copy content from my Mac and paste it in Windows. This is quite a frustrating problem indeed.
I was able to solve it by checking the Elevate box in the bottom right of the main Synergy window on the Windows client machine. It will warn you not to enable this setting unless it is absolutely necessary as it can cause issues with non-elevated processes, but I have yet to encounter such a phenomena.
Hopefully this helps future Googlers to tackle this annoying bug.
Solution 3
I was having copy/paste issues both ways using this setup, although I have 10.6.6 and win7 x64. I solved it by downloading the 1.4.1 Beta version here:
http://synergy-foss.org/download
They only have a 32-bit windows version and I read a reported bug about win64, so perhaps running the 32-bit version of 1.3.x would have solved it, but meh... no time to check
1.3.6 is now the stable version and it may fix the issue you described according to the fixed bugs page.
Brad Hazelnut
Updated on September 17, 2022Comments
-
Brad Hazelnut almost 2 years
I am trying to save the a bitmap file to jpg on my server, but unable to do so. I am able to save it to a stream and display it. But as soon as i try to save it to file it doesn't do anything. Below is my code, can someone tell me why its not saving to a file:
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { string jsonStr = Request.Form["output"]; var sigToImg = new SignatureToImage(); var signatureImage = sigToImg.SigJsonToImage(jsonStr); Bitmap bm2 = signatureImage as Bitmap; Bitmap bm3 = new Bitmap(bm2); Response.ContentType = "image/jpeg"; //bm3.Save(Response.OutputStream, ImageFormat.Jpeg); If i use this it displays the image fine System.IO.FileStream fs = System.IO.File.Open(Server.MapPath("~/Images") + "MyImage.jpg", FileMode.Create); bm3.Save(fs, System.Drawing.Imaging.ImageFormat.Jpeg); bm2.Dispose(); bm3.Dispose(); Response.End(); } }
-
Jim Mischel over 10 yearsI think part of your problem is that
Server.MapPath
is going to return a value that doesn't have a trailing directory separator. So your filename will be"c:\whatever\ImagesMyImage.jpg"
. You need to add that intervening"\"
.
-
-
Brad Hazelnut over 10 yearsI tried adding this to my code, but no error or nothing, try { System.IO.FileStream fs = System.IO.File.Open(Server.MapPath("~/Images") + "MyImage.jpg", FileMode.Create); bm3.Save(fs, System.Drawing.Imaging.ImageFormat.Jpeg); fs.Close(); } catch (Exception s) { }
-
gleng over 10 yearsTry this => bw3.FromStream(Response.OutputStream) THEN call the save function I listed above.
-
adrianbanks over 10 years@BradHazelnut: Is it creating a file on disk at all? If not, it could be related to file permissions (i.e. check that the process is allowed to create files on disk).
-
Brad Hazelnut over 10 yearsI gave everyone permission full r/w permission on that folder just for testing and it doesn't create anything.
-
adrianbanks over 10 years@BradHazelnut: Try hard-coding the file path of the image to be created instead of working it out using
Server.MapPath
in case that is resolving to somewhere you don't expect. -
Brad Hazelnut over 10 yearsi get the following error when i try to add that line: System.Drawing.Image.FromStream(System.IO.Stream) cannot be accessed with an instance reference; qualify it with a type name reference instead
-
Brad Hazelnut over 10 yearsYou're right that work, it was going to a different directory, i hard coded the path and it worked, thanks a lot for your help.