Image from db issue

Hi All,
I have a image in my sqlserver tabel. the data type is 'image'.
I want to show this image on my report.
In the designer of my dataset i set the type of the image field als System.Byte for the image field. I get this error when loading the report:
Inconvertible type mismatch between SourceColumn 'Res_photo' of Byte[] and the DataColumn 'Res_photo' of Byte
Then i changed the the type of the field on the designer as System.Byte[] manualy. Now when loading the report, i get no error bud still don't see the image
Can anyone help me with this issue?
Thanks.

Hi Shweta,
Thanks for your reply.
I have
Microsoft Visual Studio 2005
Version 8.0.50727.42  (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727 SP2
Installed Edition: Professional
Microsoft Visual C# 2005   77626-009-0000007-41159
Microsoft Visual C# 2005
Crystal Reports    AAC60-G0CSA4B-V7000AY
Crystal Reports for Visual Studio 2005
it's a win application and runs on win xp pro. The issue is on development pc, i can see everything on the report except the image.
You mean sp1 for vs 2005 or crystal reports?? i did'nt install any sp1.

Similar Messages

  • Issue with Metadata when importing 30K images from Photoshop Elements 7

    I'm a new mac user and am moving ~30k images from my PC to my mac. I have photoshop elements 7 that I use on the pc and am moving everything over to Aperture. I maintain all of my organization on the PC using "key words". I made sure to move all of the metadata over to the Mac with the images. However, I would say approx 5,000-10,000 of the images have the wrong Metadata. For example, a key-word "Vacation" is showing up on an image that should say "Christmas". This is just an example and it's creating major issues with my smart albums. The wrong images are in the wrong albums. Help!?!?

    Hi Shellie
    Is anyone familiar with PSEDBTOOL? I've been told it will do a good job applying metadata to files inside PSE but I'm afraid to run it and have it screw up my current library.
    I'm not familiar with that tool. What I will say is that your caution is well founded. If you do try to run anything like that on the PC side, ensure first that you have a backup of any data that might be modified - and that you (a) know how to restore from the backup in case anything goes pear-shaped and (b) you've actually tested your backup (by doing a restore) and are confident with its integrity.
    One other thought has occurred to me since earlier. Let's try a different tool...
      – Locate one of your problematic master files - on the Mac side - as exported from PhotoShop Elephants.
      – Open it in Preview. (It lives in the Applications folder.)
      – Select +Tools > Show Inspector+ (if the Inspector is not already showing from an earlier session).
      – Click on the Inspector icon which resembles a simplified traditional magnifying glass.
    That displays the keywords in the file.
    How do they compare with your expectations (from PSE)? How do they compare with what's showing in Aperture?
    This won't solve the problem, but it might just shed some more light on the problem.
    Regards,
    Gary

  • Issue in loading images from Apache webserver in JSF image tags on WLS 10

    I have configured the apache webserver2.0 for passing on the request to weblogic 10.0. I have images in apache webserver. In my application on weblogic i am using JSF f. In JSF for <h:graphics> tag i am not able to load images from apache webserver. issue we found out that it prepend a context url on it.
              pls provide if u have any solution for it.
              Edited by neerajr at 11/16/2007 3:33 PM

    Hi, Neeraj,
              Are you actually telling <h:graphicImage>? As per html_basic.tld, the "uri" attribute is context-relative.
              Using "value" attribute instead of "url" attribute may be helpful. Something like
              <h:graphicImage id="fooImage" value="http://www.foosite.com/image/foo.jpg"/>
              This should work on WLS10.0 if you are using the JSF library bundled in it.
              Thanks,
              -Fred.

  • I can't place images from Photos into InDesign since updating to Yosemite 10.10.3. Is this an Apple issue or an Adobe one?

    I can't place images from Photos into InDesign since updating to Yosemite 10.10.3. Is this an Apple issue or an Adobe one? It used to be a simple process with iPhoto but not anymore.

    Thanks Steve. I should have mentioned that I’m still using CS6. Wonder if that’s the difference? All I get in the sidebar is Photo Booth which is useless.
    vann jennings
    creative director
    [email protected]
    chemistry
    3918 River Rd.
    North Topsail Beach NC 28460
    cell: 412-298-8275
    Henry W. Oliver Building
    535  Smithfield St.
    Suite 230
    Pittsburgh PA  15222
    phone: 412.642.0642
    www.visitthelab.com

  • Issue with exporting the image from camera and scanner

    Hello,
    When  importing JPG digital photos from my Conica Minolta SLR digital camera,  the file size is typically 3-4 megabytes. If importing
    and then  exporting the file out of Lightroom 2.6, the size of the file is not  changed (at least not very much).
    However, when scanning 35 mm color negative films using a  Plustek OpticFilm 7600i with SilverFast-SE the JPG file has a size of  abou
    t 5 megabytes (generated by SilverFast-SE). If I take this file  and import it to Lightroom and then export it out again, the size in
    crements to about 12 megabytes. What could be the reason for this?
    Browser:  Microsoft IE
    Operating System: Windows 7
    Scanner / driver  version: SilverFast-SE v6.6.0r6
    Has it ever worked? If so, what's  changed? (provide comments in description field): Not Applicable
    Same results with different file?: Not Applicable
    Same results with  different computer?: Not Applicable
    Recent System Hardware or  Software change?: Not Applicable
    Regards
    JPSingh

    It is the compression settings on export that will define the size of an exported image from LR, the amount of compression applied will produce differing file sizes according to the type of image, the amount of sharpening and many other factors.. To compare actual file sizes (rather than compressed sizes) see what it says when in Lightroom or when open in Photoshop. Two images with the same pixel dimension can have very different file sizes when compressed. When open, in PS for instance, the file size will be the same for images of the same pixel dimensions and bit depth. .

  • Photoshop CS5 - drag images from web into photoshop issue

    Has anyone had this happen or know a solution? Photoshop CS5 at work does this, but the one I bought for home doesn't... weird
    When I drag an image from the web directly into Photoshop, the program almost freezes, I can select tools, but cant use them, I can get the handles to display with Free Transform, but then cant scale it. I have to actually close the file, then re-open it to continue working.

              The exact same thing happens with my photoshop CS5! very irritating! My boyfriends photoshop CS5 works fine and does not have this problem either! HELP!

  • Issues with Loading Images from a Jar File

    This code snippet basically loops through a jar of gifs and loads them into a hashmap to be used later. The images all load into the HashMap just fine, I tested and made sure their widths and heights were changing as well as the buffer size from gif to gif. The problem comes in when some of the images are loaded to be painted they are incomplete it looks as though part of the image came through but not all of it, while other images look just fine. The old way in which we loaded the graphics didn't involve getting them from a jar file. My question is, is this a common problem with loading images from a jar from an applet? For a while I had tried to approach the problem by getting the URL of the image in a jar and passing that into the toolkit and creating the image that way, I was unsuccessful in getting that to work.
    //app is the Japplet
    MediaTracker tracker = new MediaTracker(app);
    //jf represents the jar file obj, enum for looping through jar entries
    Enumeration e = jf.entries();
    Toolkit toolkit = Toolkit.getDefaultToolkit();
    //buffer for reading image stream
    byte buffer [];
    while(e.hasMoreElements())
    fileName = e.nextElement().toString();
    InputStream inputstream = jf.getInputStream(jf.getEntry(fileName));
    buffer = new byte[inputstream.available()];
    inputstream.read(buffer);
    currentIm = toolkit.createImage(buffer);
    tracker.addImage(currentIm, 0);
    tracker.waitForAll();
    images.put(fileName.substring(0, fileName.indexOf(".")), currentIm);
    } //while
    }//try
    catch(Exception e)
    e.printStackTrace();
    }

    compressed files are not the problem. It is just the problem of the read not returning all the bytes. Here is a working implementation:
    InputStream is = jar.getInputStream(entry);
    ByteArrayOutputStream os = new ByteArrayOutputStream(1024);
    try{
    byte[] buf = new byte[1024];
    int read;
    while((read = is.read(buf)) > 0) {
    os.write(buf, 0, read);
    catch(Exception e){
         e.printStackTrace();
         return null;
    image = Toolkit.getDefaultToolkit().createImage(os.toByteArray());
    This works but I think you end up opening the jar a second time and downloading it from the server again. Another way of getting the images is using the class loader:
    InputStream is = MyApplet.class.getResourceAsStream(strImageName);
    In this case, the image file needs to be at the same level than MyApplet.class but you don't get the benefit of enumerating of the images available in the jar.

  • I am unable to email an image from camera roll. the image gets "stuck". cannot input email address or subject line. am unable to cancel and go back to camera roll

    i am unable to email images from my camera roll. the image gets "stuck". cannot insert email address or subject line. cannot cancel... return to camera roll.
    what to do. i tries taking new picture and sending it in an email... same thing... gets "stuck "
    Waht to do ?

    Hello lohmann8,
    Thank you for providing so much detail about the issue you are experiencing with emailing photos from the Camera Roll.
    The first thing I recommend is quitting and relaunching the applications on your iPhone:
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    You can find the full article here:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    If you are still seeing the same issue after quitting and relaunching the Photos and Camera app, I recommend restarting your phone and then resetting if it's still not working:
    Restarting your device
    Press and hold the Sleep/Wake button for a few seconds until the red "slide to power off" slider appears, and then slide the slider.
    Press and hold the Sleep/Wake button until the Apple logo appears.
    Note: Reset your device only if you are unable to restart it.
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    You can find the full article here:
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If the issue persists, the last thing I recommend is backing up and restoring your iPhone:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    iTunes: Restoring iOS software
    http://support.apple.com/kb/HT1414
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Creating a Disk Image from Compressor Fails

        Hpefully some one can help me out here.
    Here's whats going on and I've tried this on 2 different systems (iMac 24 inch OSX 10.9.4,Nvidia GeForce GT750M 1 GB,  3.1 Ghz i7 Processor 1 TB Fusion Drive, 16 gigs of ram & a iMac 27 Inch OSX 10.9.4 Nvidia GeForce GTX780M 4GB, 2.5 Quad-Core i7, 16 gigs of ram 1 TB Fusion Drive, both have the USB Super Drive from Apple connected to them)
    Both are running Compressor 4.1.2. I'm trying to make a disk image from a Apple Pro Res 422 HQ Quicktime 29.97 DF (drop frame, NTSC) The file is big since it's HQ so it takes a while to compress. I'm using the Create DVD preset in compressor and choosing " When Done: Create DVD" then below that "Output Device: Hard Drive" Because I want to have a disk image for back up and future burning so I don't have to tie up any systems doing this again.
    It get's the the very end where it has that disk burning icon come up on the dock and then a warning comes up saying that there was a "error making the disk" and then that's it. I want to be able to create a disk image. Old compressor (3.what ever) works great, takes a lot longer to compress things but at least I haven't run into this issue with it.
    I've had my destination set to the internal drive's, external drives .... you name it I've tried to save it in different places. I've added a background picture, removed it, nothing seems to work ....
    Please help and much appreciated if you can help me out here.
    Cheers

    Yes it is. This should help you.
    Mac OS X 10.4 Help: Burning a CD or DVD
    Burning Data CDs and DVDs in Leopard and Tiger
    Mac OS X 10.5 Help: Burning a disk image on a CD or DVD with Disk Utility
    Mac OS X 10.5 Help: Burning a CD or DVD

  • How to delete images from folder which are not in the database

    I am created windows form
    i wont to delete images from the folder where i have stored images but i only want to delete those images which are not in the data base.
    i don't know how it is possible . i have written some code
    private void button1_Click(object sender, EventArgs e)
    string connectionString = "Data Source";
    conn = new SqlConnection(connectionString);
    DataTable dt = new DataTable();
    cmd.Connection = conn;
    cmd.CommandText = "select * from tbl_pro";
    conn.Open();
    SqlDataAdapter da = new SqlDataAdapter(cmd);
    da.Fill(dt);
    int count = Convert.ToInt32( dt.Rows.Count);
    string[] image1 = new string[count];
    for (int i = 0; i < count; i++)
    image1[i] = dt.Rows[i]["Image1"].ToString();
    string[] image2 = new string[count];
    for (int i = 0; i < count; i++)
    image2[i] = dt.Rows[i]["Image2"].ToString();
    var arr = image1.Union(image2).ToArray();
    string[] arrays;
    String dirPath = "G:\\Proj\\";
    arrays = Directory.GetFiles(dirPath, "*", SearchOption.AllDirectories).Select(x => Path.GetFileName(x)).ToArray();
    int b= arrays.Count();
    for (int j = 1; j <= b; j++)
    if (arrays[j].ToString() != arr[j].ToString())
    var del = arrays[j].ToString();
    else
    foreach (var value in del) // ERROR DEL IS NOT IN THE CURRENT CONTEXT
    string filePath = "G:\\Projects\\Images\\"+value;
    File.Delete(filePath);
    here error coming "DEL IS NOT IN THE CURRENT CONTEXT"
    I have to change anything .Will It work alright?
    pls help me
    Sms

    Hi Fresherss,
    Your del is Local Variable, it can't be accessed out of the if statement. you need to declare it as global variable like below. And if you want to collect the string, you could use the List to collect, not a string.  the string will be split to chars
    one by one.
    List<string> del=new List<string>();
    for (int j = 1; j <= b; j++)
    if (arrays[j].ToString() != arr[j].ToString())
    del.Add(arrays[j].ToString());
    else
    foreach (var value in del)
    string filePath = "G:\\Projects\\Images\\" + value;
    File.Delete(filePath);
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can I keep pictures images from  opening up in the body of an email

    Every time I attach a pic in mac mail, it opens in the body of the email.  I never had this issue with Outlook.
    I typically attach several pics at a time, the email becomes very messy.  Any suggestions on how to keep it from opening.
    I am using jpeg images.
    Plantguy1

    It depends.
    When you copy an image from a website in Firefox (right-click > Copy Image), Firefox stores the HTML code that website is using to display the image. Then when you paste into Yahoo mail, Yahoo uses that code to display the image in your message, by linking out to the source site.
    However, if you copy the image from a source other than a web page, Yahoo mail (webmail interface) can't use this technique and although it sometimes seems to show the image in the post, when I send, I just get a strange "inline image" notation in its place.
    If you access your Yahoo mail on a device in a dedicated mail client, then you usually would have more options because the mail program will encode the image into the message.

  • Displaying image from database in report

    I need to include a picture (company logo) in numerous reports. This logo will be stored in an MS SQL Image field in a table (this bit I have already sorted out).
    What I'm wondering is, what is the best way to retrieve this image from the database? Do I just include it in the view the report runs off? I'm hesitant to do this, as the view may return back hundreds of records, which means (I think) it will be sending the image along with it hundreds in time.
    In short:
    1) What is the best way to pass an image to a report.
    2) If I include the Image field in a view which returns back hundreds of line, will the image be returned also hundreds of time, causing network congestion/performance issues?
    3) If so (2), is there a way of sending the image only once, no matter how many rows are in the returned view?
    Thanks.

    Hi Shanon,
    We can display the image by making it a local copy on your machine.
    If it is possible to  get the image saved on local copy.
    If we place the image in detail section then it would return one record.
    As the image is from Database, so it would hit the database very time when you refresh the report and place it in Report Header or report fotter.
    So, place your logo as an OLE object in report and would reduce processing time.
    Regards,
    Naveen.

  • Error while getting  image from database in SUP using ios?

    Hi All,
      Im developing native iOS application using sup 2.1.3 . Im getting error While retrieving  image from SUP database. Here i'm trying to get image from database and show in imageView.can any one help me how to fix this issue?
    In database image datatype is  'LONG Binary' .
    My table Schema:
    CREATE TABLE dba.ImagesTable (
    RowID INT NOT NULL,
    ImageName VARCHAR(20) NOT NULL,
    PhotoData LONG BINARY NOT NULL,
    IN SYSTEM
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA137 PRIMARY KEY CLUSTERED (RowID)
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA138 UNIQUE NONCLUSTERED (RowID)
    in Xcode:
                [SUP107SUP107DB synchronize];
                SUP107ImagesTable *imgTable =[[SUP107ImagesTable alloc]init];
                SUP107ImagesTableList *list =[SUP107ImagesTable findAll];
                SUP107ImagesTable * oneRecord =[list objectAtIndex:0];
                NSLog(@"rowId:%d---imageName:%@---photoData:%@---photoLenght:%d",oneRecord.rowID,oneRecord.imageName,oneRecord.photoData,oneRecord.photoDataLength);
                NSData *tempData =[[NSData alloc]init];
                SUPBigBinary *responseBinaryData = (SUPBigBinary *)oneRecord.photoData.value;
                @try {
                    [responseBinaryData openForWrite:[oneRecord.photoData length]];
                    [responseBinaryData write:tempData];
                @catch (NSException *exception) {
                    NSLog(@"exception: %@",[exception description]);
                UIImageView *imgView =[[UIImageView alloc] initWithFrame:CGRectMake(50,50,100,100)];
                [self.window addSubview:imgView];
                UIImage * tempImage =[UIImage imageWithData:tempData];
                imgView.image = tempImage;
                [responseBinaryData close];
    Error Log:
    2014-04-02 18:42:15.150 SUP102[2873:70b] rowId:1---imageName:Apple---photoData:SUPBigBinary: column=c pending=1 allow_pending_state=1 table=sup107_1_0_imagestable mbo=0x0 key=(null) ---photoLenght:90656
    Printing description of responseBinaryData:
    <OS_dispatch_data: data[0xc891b40] = { leaf, size = 90656, buf = 0x1213a000 }>
    2014-04-02 18:42:33.304 SUP102[2873:70b] -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] exception: -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.306 SUP102[2873:70b] [ERROR] [AppDelegate.m:497] NSInvalidArgumentException: -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40

    This thread talks about uploading image to SAP from a IOS device,Sending Image to SAP via iOS Native app (SUP 2.1.3)
    Midhun VP

  • Error message when donloading images from camera....?!?!?

    I have been trying to import images from my Canon Rebel digital camera and am having some issues. I was having trouble with iPhoto which is why I purchased this great program. At first, the images were downloading fast and furious with Aperture but now I am having some of the same issues that I was having with iPhoto. It is taking forever and a day to import my RAW images and now I am getting an error message with almost all of my photos. It stalls out on them (and the red light stops flashing on my camera as if they aren't communicating) and then I get the message that there was "a problem downloading that image" and this error code: (ICA download error -609).
    This is extremely frustrating!! HELP!
    iMac   Mac OS X (10.4.6)  
    iMac   Mac OS X (10.4.6)  

    You're loading straight off the camera?
    Be sure the camera isn't shutting itself off in the middle of the transfer. It may auto-turn-off after a minute.
    I'd really suggest you use a card reader. You can get a USB2 CF reader which will be 10x faster than direct camera download for like $20. I can't fathom why anyone would use direct-from-camera in lieu of a reader, unless they were doing tethered shooting.

  • Photo images from dig. cam [one is error and other won't open] questions

    My wife inserted the sd card in the card reader and copied about 70 photo image files to the Mac. The camera that took all the 70 photos was a Panasonic DMC-LZ5 but I don't think the camera model matters much here.
    For the first time, 2 of the many images seem to be corrupt. Mac X reports one photo image has an error while trying to open and reports the second image won't open.
    My main concern is whether or not to just delete the two error/corrupt jpg images. My other main concern is that I don't want to keep the two images if it could affect or corrupt my hd or Mac system in some way.
    I normally just trash corrupted files; however, in this case I went ahead and attempted to open both of the 2 troubled files myself later and they both opened up in Preview and didn't report any error or corruption. However, one of the jpg images defintely is corrupt when viewing it as the bottom of the image is definitely messed up. However, the other image now opens perfectly and looks fine to the eye as if nothing is wrong with it.
    Here is a link to the one photo image that isn't quite right [note the obvious distortion at bottom of image]. Link is http://mysite.verizon.net/vzenvo78/question595.jpg
    Further very relevant information: The SanDisk sd card that all the 70 images were on is a 1 gig card and the sd card seems to be a total loss. The sd card can't be initialized/formatted by disk utility and furthermore the sd card is no longer recognized by the Panasonic camera - the Panasonic camera won't even preview the images off the card or allow me to format the card even from the camera.

    Hello,
    I see what you are talking about. I just discovered this same exact problem on a friends G5 after he uploaded pics from his Leica.
    This is what I did: I ran Disk Utility from the system restore disc to verify and repair the drive. DU reported Volume Bitmap problems. DU was able to repair the disc. Next, I created a new user account and tried uploading the images from the camera to the G5 and it worked just fine. The images loaded like they should.
    I also reinstalled the drivers that came with the camera.
    Delete any files that your Mac reports as a problem. It's just not worth leaving them on the drive.
    So...... run Disk Utility from your system restore disc. If it reports errors, hopefully DU can repair them. If not, one option is to get DiskWarrior here:
    www.alsoft.com or TechToolPro4 here: www.micromat.com
    One other idea is how old is the card?
    Next idea is to create a new user acccount: System Prefs/Accounts. Try using that account to upload the same images. See if they upload as they should. If they do, then the issue isn't system wide, it's just in the other user account.
    Remember to always back up your images/audio/data often as you never know when you might need to do either an Archive or Erase and Reinstall.
    Carolyn

Maybe you are looking for

  • Connecting my MacBook Pro to the Internet via Cingular

    I am, at this moment, using my MacBook Pro to access the internet, and play World of Warcraft tethered via bluetooth to my Razr using my data plan from Cingular. This has been such a battle. I had tried before and couldn't get it to connect. I had se

  • 2 devices sharing 1 library

    I have my iPod touch 3 for some time and in March I bought an iPhone 4. Originally I added a separate library for the phone, both sharing the same iTunes account. I use the shift key when booting iTunes to switch between libraries. Now, I'd like to u

  • Can the Condition records in the transaction NACE be transported?

    Can we Transport the Condition records in the transaction NACE from one system to another ( I mean from Dev to Quality). I have navigated through all the menu in the transaction NACE but haven't found any link for transport. Any help pls.

  • Apps review and rating stars doesn't work

    My app can't be rate and review by user right after they are download my apps. Is there any problem with my apps or what? What should I do? My apps is a game Aircraft Takedown. Thank you

  • How to get nested JSON structure from OData service result

    Hi all, This is what I have done : I have developed OData service where I am following below steps : 1. Created Stored procedure for the logic 2. Created scripted calculation view and call stored procedure from the view. 3. Created OData Service wher