.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

image is showing in sql image viewer,but in aspx page it is not getting

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :ASP.Net
dears , in sql 2005 table i created an image columnin that image colum i inserted an image in hex format. data like as follows.0xFFD8FFE00104A4649460110010100FFDB0430C88A88CAAACCCE101C121010101022181A141C28222A28262226262C303E342C2E3A2E2626364A363A40424646462A344C524C44503E444642FFDB0431CCC10E1020121220422C262C4242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242FFC401F001511111100000000123456789ABFFC40B5100213324355440017D12304115122131416135161722711432813FA182342B1C11552D1F0243362723F9A161718191AD25262728292A3435363738393A434445464748494A535455565758595A636465666768696A737475767778797A3F3F3F3F3F3F3F3F3F3F3F3F3F3F3F3F3FA2A3A4A5A6A7A8A9AAB2B3B4B5B6B7B8B9BAC2C3C4C5C6C7C8C9CAD2D3D4D5D6D7D8D9DAE1E2E3E4E5E6E7E8E9EAF1F2F3F4F5F6F7F8F9FAFFC401F103111111111000000123456789ABFFC40B5110212443475440127701231145213161241517617113223281814423FA1B1C19233352F0156272D1A162434E125F11718191A262728292A35363738393A434445464748494A535455565758595A636465666768696A7374D75767778797A3F3F3F3F3F3F3F3F3F3F3F3F3F3F3F3F3F3FA2A3A4A5A6A7A8A9AAB2B3B4B5B6B7B8B9BAC2C3C4C5C6C7C8C9CAD2D3D4D5D6D7D8D9DAE2E3E4E5E6E7E8E9EAF2F3F4F5F6F7F8F9FAFFC0011807803F3121021113111FFDD0402FFDA0C31021131103F0A6B1D43F3A42B0E03FED3F3F63FFD0685A5DB5216176D1B69058FFD15DB46DA80DB49B6811FFFD24D3F3F2A434AD46C9408FFFD38D52A511D21D3F8E97CBA763FFD43F651B2A4A176D1B698FFD53F6D1B6A61B28D94058FFD63F65

View Complete Post

More Related Resource Links

Image background color is showing while i drag in content place holder in master page ???


Hi  ...

I had few icons and images in my old web project which had no issue with the images and icons background color.

Now i have changed the total look and layout of my web site. After doing so , my old images and icons as well as new images and icons backgroud color is also displaying in the image.

The same image is looking good in my old web site layout ...

I tried all the stuff to show only image not image background ... But , it is not happening ....

The main thing is the same images and icons background color is not showing in my old design ...

Look at the image background , it has grey color background. It was not happening in my old web site design

Plz help me to solve this .... 

Display the image in the aspx page



     I am fetching the image from the sqlserver and display the
     image to aspx page in thumbnail.

   I wrote the code as follows
          SqlConnection connection = new SqlConnection("server=Ns;initial catalog=MR;uid=sa;pwd=`kk");
                SqlCommand command = new SqlCommand("select ID, Image from tblPlanogram where id=" + imageid, connection);
                SqlDataReader dr = command.ExecuteReader();
                while ((dr.Read()))

CreatePage.aspx cannot display page layout preview image


I am using a custom site template and functions fine, except that when I get to the CreatePage.aspx page, the preview image is not displayed. When I looked up the properties on that image, it was looking for the image in a location other than the place where it should.

For eg: Instead of looking for it at /_catalogs/masterpage/en-US/Preview%20Images/ArticleBodyOnly.png  it looks for it at xxx/test/_catalogs/masterpage/en-US/Preview%20Images/ArticleBodyOnly.png where xxx was an external consultant that worked on this site before me and I am new to sharepoint. The only scenario when this doesnt happen is for the DefaultPageLayout.png file.

This problem seems to repeat everytime I use this site template. When I open up the sites with these templates on Sharepoint Designer, I can see all the preview images over there. For some reason, the CreatePage.aspx is not looking for the images in this location and looks for it at another location.

I am really stuck with this issue, can someone please help me understand why this is happening or help me resolve this?


Way of showing ID on the DispForm.aspx page without programming?

Is there a way of showing the ID system field on the DispForm.aspx page without programming.
I don't want to use a dataview, as new fields being added in the future won't appear automatically anymore this way on the DispForm.aspx page. 

I found somewhere that I could use a calculated field, with as formula =ID (so, in fact just copying the value of the ID field in the calculated field), which is one option.

Are there other options/solutions known?
Patrik | My Blog

Can't edit metadata when showing the image.

I have an app that in the Left-hand pane Reads the filenames of the images in a folder and places them into a ListBox.  In the Right-hand pane there are a series of TextBoxes showing various pieces of metadata from the selected image file.  I can read and update the metadata with no trouble. As soon as I place an acutal image in the ListBox it stops updating.  Delving into the class for the metadata tells me that it 'Unable to get writtable property store for this property.'  I believe this is because with the image open in the ListBox it can't update the file. Is there a way to place an image in the ListBox without keeping the original image file open, maybe by using a clone, a thumbnail, or something. Following is is my image class.  You can see what I had to comment out to get it to work. Namespace Image.Viewer     Public Class MyImage         Private _image As ImageSource         Private _name As String         Public Sub New(ByVal image As ImageSource, _                                  ByVal name As String)           &

How do I display my animated image while the next page loads?

I have the following code so it'll show an animated progress GIF but if the site takes longer than this, it will quit. Is there a more effective way?System.Threading.Thread.Sleep(2000) Here's my update progress code:<asp:UpdateProgress ID="UpdateProgress1" runat="server"> <ProgressTemplate> <div class="PleaseWait"> Please wait ... </div> </ProgressTemplate> </asp:UpdateProgress>  

How to set Page title for Response.ContentType = "image/jpeg"

Hi , how can i set Title for a page with Response.ContentType = "image/jpeg" ? thanks, Naresh

Stretch the menu (horizontal) background-image across the page


 I would like to continue my background image to the right end of the content holder and keep the menu items over on the left of the content holder.  Does this make sense?  For example, my menu items are dynamically loaded.  Sometimes I have only two (Guest and Member).  Right now my background image ends rignt after the "Member" item but I want the image to continue across the page.  It is important to note that setting the "width" property in the CSS stretches the items across the page and this is not what I seek.  Here's a bit of code.

/* Menu Styling */
   background-image: url(../../images/bavbg.gif) no-repeat;


#menu .Item
  /* CSS class for non-selected Menu Item */
  border:Solid 1px Gray;
  background-image: url(../../images/bavbg.gif);

#menu .ItemSelected
  /* CSS class for selected Menu Item*/
  background-image: url(../../images/bavbg.gif) no-repeat;

#menu .ItemHover
  /* CSS class for hovering Menu Item*/
  background-image: url(../../images/bavbg.gif) no-repeat;

/* CSS classes for standard Links, only valid inside the #menu DIV */
#menu a, #menu 

Controlling Page Image Size / Scale

I have created a custom master page for a WSS 3.0 site and all is working well except for the fact that I want to use the default page images that are provided, but they are too wide for the area available.  I have tried setting the table width but the width of the image seems to override that, so I would like to know if there is a way I can control the size (or better yet the scale) of the page image when it is displayed in order to have it fit within the area I have on the custom master page.

Thanks in advance,

Wiki page and image's relative Url



My client is using wiki page. In the wiki page content, user may need to add image from current folder (where the wiki page located). When user adds an image from current folder in sharepoint designer, the image location is added as relative to the current location like 'image/header.jpg'. But when the page is saved the image location is remove from the page. However if user put the relative location from site root like '/folder/subfolder/header.jpg' the image works.


Even if the user try to upload the image from wiki editor in browser, the image can be uploaded in the root folder of a library. If user continues to upload images in a single folder, in the long run the images will not be manageable anymore.


Have anyone experience the problem? Is it bug or desired behavior?


Sohel Rana

how to draw a part of the page to image



i want to draw a part of the page like panel or table  or whatever to image

how to convert it to stream to save it to image?


thanks in advance.


Display image on the bottom of last page


In our current project we decided to use MS Reporting Services to display reports and export to PDF.
After solving many problems (btw. terrible product, who invented that data item can not be used in page header???) one left:
client requirement is to put image (bank transfer form screen - about 10 cm height) on the bottom of last page - reporting services don't have 'report footer' - how can I achive this? There is a way to dynamic (code?) change page footer height and show image only in last page 'anchored' to bottom?

Displaying waiting image when page is loaded in asp.net



I want to display gif image when a page is loaded...

I have a dropdown list when this is selected Gridview is populated with data from database..

I want to show a gif image when this gridview is populated...

how to implement this without AJAX...





Content Query WebPart (CQWP) not showing thumbnails of the rollup image



I have set up my CQWP to display pages from a newssite. This is working fine, but my rollup images is showing in full size. As I have understood, SharePoint has the ability to scale down pictures and showing them as thumnails.

In the "Fields to display:" I have set the path to "Thumbnail; Rollup Image; ".

.master page image is not shown in sharepoint site????


have build my .master page and uploaded it into sharpoint site all other constrols are shown on the master page on sharepoint site

but image is not visible on sharepoint site

can any body give me the solution about that!!!!!!

in sharepoint 2010

master page image not shown in sharepoint site


i have build my .master page and uploaded it into sharpoint site all other constrols are shown on the master page on sharepoint site

but image is not visible on sharepoint site

can any body give me the solution about that!!!!!!

in sharepoint 2010


How to set default Image to RichFieldImage control in custom Publishing Page layout in Site defini




How to set  default Image to RichFieldImage control  in custom Publishing Page layout in Site definition?


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend