如何访问平板电脑文件夹以检索图片? [英] How can I access a tablets folder to retrieve a picture?

查看:151
本文介绍了如何访问平板电脑文件夹以检索图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何访问平板电脑文件夹以检索图片?



例如:



说我已经为我的网站编写了一个应用程序,允许我输入数据和图像。现在我正从我的平板电脑浏览我的网站,我想用我的平板电脑拍照,但我希望那张照片出现在应用程序的文本区域?或者至少让我的应用程序从平板电脑上的文件夹中获取我刚刚拍摄的照片。



是否有人有任何关于我或如何完成任何信息的例子这个?

How can I access a tablets folder to retrieve a picture?

For example:

say I have written an application for my website that allows me to enter data and also images. Now I am browsing on my website from my tablet and I want to take a picture with my tablet, but I want that picture to appear in my text area of the application? or at least have my application get the picture I just took from the folder on the tablet.

does anyone have any examples of this or any information on how I can accomplish this?

推荐答案

好的,我想你需要检索上传的图片,这是从平板电脑上传的吗? ,那么你需要将它查看到文本区域吗?



如果这是你的问题,我认为你不能将图像显示到文本框中,但你可以将它显示到标签中。



如果您需要知道将其上传到数据库然后检索它,请检查此链接:

http://www.aspsnippets.com/文章/保存并检索-BLS-Images-from-MySql-Database-in-ASPNet-C-and-VBNet.aspx [ ^ ]



您可以通过此代码库在提到的链接上将该图像检索到标签中。



OK , I think you need to retrieve an uploaded image , which is uploaded from your tablet m right ? , then you need to view it into a text area ?

if that is your question , I think you cannot show image into textbox , but you can show it into label.

If you need to know to to upload it into database then retrieve it , please check this link :
http://www.aspsnippets.com/Articles/Save-and-Retrieve-BLOB-Images-from-MySql-Database-in-ASPNet-C-and-VBNet.aspx[^]

and you can retrieve that image into a label by this code base on mentioned link.

If e.Row.RowType = DataControlRowType.DataRow Then
       Dim bytes As Byte() = TryCast(TryCast(e.Row.DataItem, DataRowView)("Content"), Byte())
       Dim base64String As String = Convert.ToBase64String(bytes, 0, bytes.Length)
  Labal1.text =  ""

   End If



标签代码无法设置,请检查下面链接,它的图像

http://i.imgur.com/XDF1Fdp.png [ ^ ]


这篇关于如何访问平板电脑文件夹以检索图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆