Trouble showing different images. Some of them appear, others don't
I'm using socket connection to transmit images from a computer to another. Sometimes it shows the image, sometimes it doens't.
Here is the code that i'm using:
SERVER SIDE:
Archivo = new File("C:/Documents and Settings/Pedro/Desktop/Prueba2.JPG");
Entrada = new FileInputStream(Archivo);
salida = cliente.getOutputStream();
longitud = (int)Archivo.length(); //File length;
int longitud2 = 0;
// Here i pass the file length trough the socket
// salida tells me if the file y larger than 127 bytes or not.
// if the file is larger than 127 bytes then i divide / (1024*1024)+1
if(longitud < 129024){
longitud2 = (longitud/1024)+1;
salida.write(1);
else if(longitud > 129024){
longitud2 = (longitud/(1024*1024))+1;
salida.write(2);
salida.write(longitud2);
int c =0;
//The array is longitud length of bytes.
arreglo = new byte[longitud];
while(((c = Entrada.read(arreglo)) != -1))
salida.write(arreglo);
socket.close();
cliente.close();
Entrada.close();
salida.close();
//THE CLIENT SIDE (A METHOD called byte[] getArreglo() OF A
//CLASS CALLED CClienteSocket)
//returns: an array of bytes that is going to be used to show the image.
// Cual tells me if the length is larger or not than 127.
int cual = entrada.read();
int longitud = entrada.read();
if(cual == 1){
longitud = longitud * 1024;
else if(cual == 2){
longitud = longitud * 1024 * 1024;
byte arreglo[] = new byte[longitud];
try
int c = 0;
while((c = entrada.read(arreglo)) != -1)
socket.close();
entrada.close();
salida.close();
return arreglo;
FROM ANOTHER CLASS I DO: (PRESSING A BUTTON)
void Boton_Foto_actionPerformed(ActionEvent e)
try
ClaseArreglo = new CClienteSocket();
byte[] arreglo = ClaseArreglo.getArreglo();
Icon Foto = new ImageIcon(arreglo);
Label_Foto.setIcon(Foto);
catch(IOException ex1){
System.out.println(ex1.getMessage());
catch(Exception ex5){
System.out.println(ex5.getMessage());
I get no exception during this operation. I want to know why it sometimes shows the image with no problem a sometimes it shows the image in half, or it doesn't show the image at all!!
What should i do to warranty that the image is going to be shown???
You can use this button to go to the currently used Firefox profile folder:
*Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
See also:
*http://kb.mozillazine.org/Profile_folder_-_Firefox
Similar Messages
-
After connecting an external monitor to my MacBook(late 2008) is it possible to show different images on the two screens at the same time?
TIAYes. Open System Preference (under the Apple menu) and select Displays. See the instructions in this Apple article for how to continue.
Best of luck. -
When importing my images some of them are missing how do i retrieve them
when importing my images some of them are missing . how do i retreive them ?
Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: command+Shift+F).
If you are in full screen mode then hover the mouse to the top to make the Navigation Toolbar and Tab bar appear.
You can click the Maximize button at the top right to leave full screen mode or right click empty space on a toolbar and use "Exit Full Screen Mode" or press F11. -
I can't sync my photo events using iTunes; only some of them appear on my IPhone Why?
I can't sync my photo events using iTunes; only some of them appear on my IPhone Why?
Solved here...
Photos app not syncing with iTunes -
Our test environment is quite simple one Operations Server 2012 R2; with the database and SSRS instance on another server; Service Manager 2012 is on it’s own virtual machine; and the Service Manager Data Warehouse on it’s own. I’ve been trying to demo chargeback
with scvmm and I’m having issues with the chargeback reporting.
I’ve followed this process to install chargeback reports:http://technet.microsoft.com/en-us/library/jj614406.aspx which
completed successfully. All of the cubes seem to process correctly in Service Manager and I can create a chargeback analysis excel sheet with no issues in service manager. I still do not get any chargeback reports in the Operations console though. I get some
reports under the “Microsoft System Center Virtual Machine Manager 2012 R2 Reports” heading like Capacity, Host Group Forecasting, Host Utilization, etc but no chargeback report.
I can see the chargeback report in the SSRS website but cannot get it to appear in the Operations console. If anyone has any tips or troubleshooting they can point me at I would appreciate it.Hi,
Hope the below link could be helpful:
Enabling Chargeback in a Service Provider Cloud by Kristian Nese
http://blogs.technet.com/b/privatecloud/archive/2013/04/12/enabling-chargeback-in-a-service-provider-cloud-by-kristian-nese.aspx
Regards,
Yan Li
Regards, Yan Li -
RAW files show icons for some folders, thumbs for others
I have CS3, on OS 10.5, and use a Nikon D90. I've taken lots of pics in RAW format and all have shown a thumbnail in Bridge. Until the most recent set of pics I saved to my HD....they only show the RAW icon. What is going on with that? How can I make it show thumbs? Thanks
Is there a setting on my camera (Nikon D90) or in Bridge I may have tripped up
that
doesn't save a thumbnail?
Can't think of such a setting.
Could you specify if you have done some updates recently. There are a lot of
issues with Bridge CS3 and CS4 and CS5 are a lot better and much much more
stable.
However it seems to me that it is ACR related. Could you look at the specs
for this. In Photoshop go to the menu Photoshop/about plug in and choose
Camera Raw. Inhere there should only be one Camera Raw and it should say
version 4.6.
Could you report back on that?
And can you also check if you can see thumbs from Tiff, PSD or Jpeg files? -
How can I restore the icons in my bookmarks some have them and others are a blank rectangle.
there are icons in my bookmarks and others that are just blank rectangles. on the ones that are blank I would click on the bookmark and close the icon would return and others still remain a blank.
Please help me restore those icons that are blank.You can try this add-on:
https://addons.mozilla.org/zh-CN/firefox/addon/bookmarks-deiconizer/ -
HT2513 Why do some events sync and others don't?
I have an iMac 27" running OSX 10.6.8 and a latest model iPod Touch which I have syncing with the iMac and is running iOS 6.1.2.
I first noticed that they weren't syncing reliably when I lined up some Apple Store classes.
I DLed the iCal events and double clicked on them. They show up in the desktop iCal but some do and some don't on the iPod Touch.
The same happens with events I create myself. Some Sync and some don't. I did these all in the same session, so can't understand what is the difference.
I have all Callendars checked in the iPod's Calendars app.
I have tried restarting both the desktop and Mac apps and even restarting both devices completely.
The missing events just stubbornly refuse to show up.
Can anyone else think what else to try.
To be frank looking at the whole process of importing events from the Apple Store, down to the adding of my own events and then syncing them is a tedious shambles. Certainly not something that "just works".Hopefully, your question will get a response soon.
Similar issue.
I too am running 10.6.&.
iOS is 6.1.2 (iPhone 4S).
In my case, there are far more events that fail to sync than sync properly. But there is no rhyme or reason to any of it that I can see.
Russ -
I am editing a bunch of wedding photos. Everything has been fine until today..... I opened up the folder, and for some of the edited photos, I have to double click in order to see the edited version. So, when I look at all the photos in the browser, some of then show my changes..... others don't. I'm worried, because I will have to post them for the bride, and I am concerned about why this is happening. I still have the images on the memory card and also have a duplicate of all the photos in iphoto..... but I've spent hours editing these photos...... and I really don't want to start all over again.
I am editing a bunch of wedding photos. Everything has been fine until today..... I opened up the folder, and for some of the edited photos, I have to double click in order to see the edited version. So, when I look at all the photos in the browser, some of then show my changes..... others don't. I'm worried, because I will have to post them for the bride, and I am concerned about why this is happening. I still have the images on the memory card and also have a duplicate of all the photos in iphoto..... but I've spent hours editing these photos...... and I really don't want to start all over again.
-
How to Show Different set of Blob images in every page
Hi i am using Crystal Report Server XI RAS Embedded Edition to built Dynamic Reports.
Now i have two datasets
1. Main query with imageid field
2. list of image blobs.
this two datasets are linked with imageid field and binded to ReportClientDocument.
i have to show different image fields in every page of the report. this images are differ in width and heights.
i am able to show a single constant image field object from blob database field.
but i could not able to find the solution to show different set of multiple images in different pages of the report.
is there any formulas can be written or kindy give me a solution to achieve this.
Regards,
Padmanaban V
Edited by: Padmanaban Viswanathan on Mar 15, 2010 11:59 AMSee RAS samples [here|https://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples]. Look for "NET-CS2003_RAS-Managed_BE115_Add_Image" or "NET-VB2003_RAS-Managed_BE115_Add_Image-From-File".
Ludek -
Imagem on Rollover show more images
Hi guys
I have one questions about if is possible or not.
I like to know if if possible this
I have one image on rollover will show more 3 diferent images and any image have a diferent linkHi
You can try this out with panels , Make the label fill with main image . Define the state on rollover.
In content area insert different images and hyperlink them.
Thanks,
Sanjit -
Why is it when I transfer photos taken on my iphone 4S to my PC some of them appear on my PC as landscape and some as portrait -= though all were taen as portrait on the iphoen
I can rotate them on my PC but then when I try to save it does not allow me to saveAs a Test:
Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
Import a few pics into this new, blank library. Is the Problem repeated there? -
Hello!
My question is probably stupid, but I've got some problems to show an image in a jPanel (or others Containers).
There are a lot of tutorials for showing an image in applets, but it's difficult to have good explanations for an application.
I know I should use GetImage and Toolkit but I don't know how.
I'm sure it's quite simple, so
Can anyone give me some code samples?
Thank you for your replies.hi,
you can create a jlabel and add an image to that and then place the jlabel into a jpanel.
import javax.swing.*;
import java.awt.event.*;
class ShowImage extends JFrame {
JPanel panel = new JPanel();
JLabel label = new JLabel(new ImageIcon("add.gif"));
public static void main(String args[]) {
ShowImage obj = new ShowImage();
obj.display();
void display() {
panel.add(label);
getContentPane().add(panel);
setSize(100,100);
addWindowListener(new WindowHandler());
setVisible(true);
class WindowHandler extends WindowAdapter {
public void windowClosing(WindowEvent e) {
dispose();
} -
Polar chart type: show different values
Hello,
I have a polar chart type it would be work pretty good but I have a question. For the chart type I created a query and the result looks so:
<b>Region</b> <b> real Value calValue</b>
EMEA -5% 95
LATIN 8,3% 108,3%
For the chart type itself is the calValue e.g. 95 important. But I want to see the Value -5%.
That means the chart type pictures works with the calValue but the User should see the realValues. Is it possible?
Thanks a lot for your help
CU
pattyCheck out our sample reports by downloading them. Most have charts to show you how to use them.
-
Just installed mountain Lion. Viewing a pdf sent to me using preview and some colors are appearing BLACK, however when I view the same PDF in Acrobat they are perfect and what they are suppose to be. WHY would PREVIEW showing a different color?
Here's what I've found on the issue:
Pantone color definitions have changed (coinciding with CS6) — they are now "Pantone+" (I think that's what they're called). The "+" apparently means they're now LAB colors. Lab colors are not properly displayed in Preview (or in Finder previews) — they display as black (as far as I can tell, in all circumstances). I'm sure it's a tad more complicated than that, but that's the gist.
Now the bad news — nobody seems to know anything about a fix or workaround (unless you convert your PDFs to process — this might be a fix for sending to clients). It causes issues for me in AI files — being able to view them in the finder (with previews) is a HUGE time saver for my workflow... when they're all black, not so much.
In my chat with a director of product dev at Adobe, they placed the responsibility to fix on Apple (assuming Apple wants to support Pantone color definitions in their OS).
Maybe you are looking for
-
Enter sold-to party debit memo request - credit memo request
Hi Gurus, I have a scenario here while creating a Debit memo request. 1. I create a Debit memo request with sold-to party 1000 2. I create a Credit memo request with the same sold-to party 1000. That will be saved, but when you enter VA02 or VA03 for
-
Java on Linux vs. Windows
Dear All, I was able to write below AES/CFB/NoPadding encryption/decryption program (with many thanks to the Internet) and it works fine on Windows. But it's "getByte()" gives problems on Linux. Which is the "symmKey.length()" inside "SymmCipher" con
-
Where are my slide show music settings
I recently upgraded to iPhoto 6.0.3. When I try to make a slideshow I click the Music button and check my song selection from my iTunes library. The song I had selected for the album is not longer selected. I've lost all my song selections I had save
-
I haven't found the answer to this question. I upgraded from a beloved G4 to the MacBook and plugged it into my external keyboard (ergonomic), wireless mouse and VideoSonic VA912B monitor that has a resolution of 1280 x 1024. It is a bit blurry, and
-
I can't sign in to you tube on my ipad2 :-(
Does anyone know why I get a message saying my "authentication failed" when I try to sign into the YouTube app on my ipad2? I can sign in using safari by not the app. :-( any suggestions?