Re: Urgent-How to access image from the server folder



You don't need to use MapPath. The image url should be set to server
location, like

Orchid_Image/MyImage.jpg

That's it.

Eliyahu

"Manish Songar via .NET 247" <anonymous@xxxxxxxxxxxxx> wrote in message
news:O%23T21RUWFHA.1404@xxxxxxxxxxxxxxxxxxxxxxx
> I am using asp.net. I am not storing image in sql server.I store all
> the image in one folder. I want to access image from that folder to my
> client machine. Images folder (\Orchid_Image) store in the same place
> into the application root (server machine) like
> c:\inetpub\wwwroot\OrchidDB\Orchid_Image. I am using repeter control
> for show images. I already use server.Mappath but still when I run my
> application in client machine it still look for the image on client
> machine itself.
> When I run apllication on server images are display in repeter control but
when i run it on client machine it dose not display image.
> Once again i show you my code please solve this problem.
> it is urgent..
>
> Dim dt As New DataTable("Orchid")
> Dim FullPath As String
> Dim col As DataColumn
> Dim Rowimg As DataRow
> 'Use strimg --got images name from sql server with comma
> 'delemeter
> Dim strtxt As String = StrImg
> 'split image name here
> Dim StrString() As String = Split(strtxt, ",")
> col = New DataColumn("image", GetType(String))
> dt.Columns.Add(col)
> For Each strtxt In StrString
> 'It work on server but not work on client machine
> FullPath = Server.MapPath("Orchid_Image/" & strtxt)
> Rowimg = dt.NewRow
> Rowimg.Item("image") = FullPath
> dt.Rows.Add(Rowimg)
> Next
> RepImg.DataSource = dt
> RepImg.DataBind()
> --------------------------------
> From: Manish Songar
> m_songar@xxxxxxxxx
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>pkPj2Q87ikyXWqCQojm7Qw==</Id>


.



Relevant Pages

  • Re: [opensuse] Printer cups, pam and samba authentication problems
    ... Your suggestion to try printing from a command line, on a client machine resulted in a very similar behavior to what I got when using the KDE manager to test the printer. ... The lp command defaults to sending in the logged in users id to the CUPs server and it then prompts for the password. ... Now I KNOW I was sending the right password because I have to use it in order to log in to the CUPS server machine in the first place! ...
    (SuSE)
  • Re: Stupid ATL COM Server question
    ... One way is to specify the remote server at ... registering your type library on the client machine will not ... you either have to register your ... This provides the alternate way of specifying a remote ...
    (microsoft.public.vc.atl)
  • Re: appears to loose authentication
    ... Is that on the same client machine at the time, ... I find interest in your comment earlier that if userA is seeing this problem ... an invalid DNS server in the Tcp/Ip settings. ... If this only happens when they try to access Goldmine, ...
    (microsoft.public.security)
  • Re-Post - Setting up the distributor
    ... be on a server to do it, rather than a client machine. ... >time I put in a folder name (which I do have permission ... >to) it says the the directory name is not a valid path, ...
    (microsoft.public.sqlserver.replication)
  • Re: KRB5CCNAME and sshd
    ... >> and in ssh_config on the client machine. ... SSH will delete the session cache at the end of a session ... > the UID based common cache and unsetting the KRB5CCNAME set by sshd. ... I "kinit -f" on the client box at home and then ssh to the server box ...
    (comp.protocols.kerberos)