存储和检索图像并按id滚动这些图像 [英] Storing and Retriving images and scroll those images by id

查看:84
本文介绍了存储和检索图像并按id滚动这些图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,任何人都可以说我如何将图像保存或上传到数据库,并且我必须检索这些图像并使用该ID逐个滚动,而在滚动单击该图像时,我可以删除该图像该滚动列表中的图像以及图像滚动都可以随机进行,所以任何人都可以告诉我如何逐步进行操作
....................

Hi Everyone can anyone can say how i can save or upload the images to the database and i ve to retrie those images and scroll by one by one with that id and while in the scrolling clicking on it i can able to delete that images from that scrolling list and the images scrolling can be done randomly also so can anyone can tell me how to do in step by step please
....................

推荐答案

由于这是您的家庭作业,因此对您来说很公平应该完成大部分工作,不是吗? :laugh:
因此,没有代码.只需将其分为几个阶段,并在继续进行之前完成其中一个即可.

从头开始:
1)设置数据库以保存图像:您将需要至少两个字段,一个ID和一个BLOB或IMAGE(取决于数据库)
2)编写代码以存储图像并进行测试.
3)编写代码以检索图像并进行测试.
4)编写代码以显示图像.
5)然后,您只需要设置一个计时器并滚动即可.
Since this is your homework, it''s only fair you should do most of the work, isn''t it? :laugh:
So, no code. Just break it into stages, and complete one before moving on.

Start from the beginning:
1) Set up your database to hold the images: you will want at least two fields, an ID, and a BLOB or IMAGE (depending on your database)
2) Write the code to store the images, and test it.
3) Write the code to retrieve an image, and test it.
4) Write the code to display an image.
5) Then all you need to do is set up a timer and scroll though.


这篇关于存储和检索图像并按id滚动这些图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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