Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Showing 500 to 700 images in grid without paging .... using Response.BinaryWrite(byte []) to show images

Showing 500 to 700 images in grid without paging .... using Response.BinaryWrite(byte []) to show images

Scheduled Pinned Locked Moved ASP.NET
helpcssdatabasesecurityarchitecture
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ankushmn
    wrote on last edited by
    #1

    Hi, We are facing one issue in our web application. Architecture is we have one end user site which fetches data from database and fetches images from share point site. In end user site in one of our page we show grid which contain information along with the images related to that row. To show images we use one function which request to share point site for images with Id/pwd for authentication. This function is working properly. In grid we are able to show all images properly. Currently we are showing 10 records per page means grid page size is 10. Now the issue is : On the same page there is a link which opens a popup, this popup shows all records in one grid without paging means all records on one page. In this case we use same function to fetch images from share point and but this we are not able show all images properly some of the image are Red Cross so we confirmed that whether images are present in share point site but the images are there in share point site. above case we tested for 350 records also ... still only 190 to 180 images get download while download images it shows status on status bar at bottom for e.g. (500 items remaining) but in between suddenly it this status disappears from status bar and status also shows page complete download I am not able to understand why images are not appearing and why they are appearing after right click and show image option. Is there any issue related to memory ?? Is there any limit to show no. of images on one aspx page ?? Can any one help me in this issue … Thanks in advance

    J 1 Reply Last reply
    0
    • A ankushmn

      Hi, We are facing one issue in our web application. Architecture is we have one end user site which fetches data from database and fetches images from share point site. In end user site in one of our page we show grid which contain information along with the images related to that row. To show images we use one function which request to share point site for images with Id/pwd for authentication. This function is working properly. In grid we are able to show all images properly. Currently we are showing 10 records per page means grid page size is 10. Now the issue is : On the same page there is a link which opens a popup, this popup shows all records in one grid without paging means all records on one page. In this case we use same function to fetch images from share point and but this we are not able show all images properly some of the image are Red Cross so we confirmed that whether images are present in share point site but the images are there in share point site. above case we tested for 350 records also ... still only 190 to 180 images get download while download images it shows status on status bar at bottom for e.g. (500 items remaining) but in between suddenly it this status disappears from status bar and status also shows page complete download I am not able to understand why images are not appearing and why they are appearing after right click and show image option. Is there any issue related to memory ?? Is there any limit to show no. of images on one aspx page ?? Can any one help me in this issue … Thanks in advance

      J Offline
      J Offline
      Jesse Squire
      wrote on last edited by
      #2

      This may be a bit of a shot in the dark, but it sounds to me like this could be a time-out issue. Some questions that you may wish to ask yourself:

      • Have you done any measurements around how long the popup takes to render with different amounts of records?
      • How about the time it takes to retrive images from the SharePoint site?
      • Are you retrieving each image individually or in a batch?
      • Do you have any kind of cache strategy around the images, or are you asking SharePoint for them each time out?

      One thing that you may wish to consider is using an HTTP Handler to request the images from SharePoint and cache them for future requests. For the extreme case, you may wish to consider having that handler preemptively request images from SharePoint and cache them before they are requested. Of course, you would be trading higher memory usage for speed and would also have to make the decision as to how often you anticipate those images changing, and how close to real-time those images need to be returned. Hope that helps a bit. :)

      --Jesse

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups