Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

I need suggestions for my Project. Simple Program

catonpaolo123

Recruit
Basic Member
Messages
5
Reaction score
0
Points
16
Mga programmers/developers, Ask ko lang kung anong magandang gamitin na database para sa files tulad ng images, pdf, exe, xls, ppt, etc. I want to create a offline or online database para sa mga files. Maalam ako sa programming, nakakagawa naman ako ng mga simple apps gamit ang Vb.net, Html,css,javascript,
Suggest naman kayo kung paano at mas magandang gamitin para sa project ko.

Project : Offline Database that can store images, pdf, exe, xls, ppt, etc.
Functions : Add/Upload files, Delete files, View Files,
: With search (nafifilter nya yung mga tinatype ko oh hinahanap ko.)

Problem : Hindi naman to problem, pinagaaralan ko pa lang kung paano ko gagawin.
May 3 klase kasi ako ng iuupload sa database ko.


Example :
For example eto ang mga files ko. Gusto ko pag nagtype ako ng "my" lalabas na yung mga files at madali ko na sya makikita lahat ng files na may "my"
mydata.jpg
myfiles.doc
data.png
myfiles.png
movies.mp4
movies2.avi
21data.pdf
music.mp3

Nagtry na ako gumawa ng html. may mga functions na din. d ko pa lang alam kung san ko isstore itong mga iuupload na file.
Thanks. Sana may makatulong. Or kung may maissugest kayo na app/software na pwede ko magamit para maidagdag sa function ng gagawin kong project. mas ok at malaking tulong
 
Try mo siguro gumamit ng Queries.
Tapos gawa ka table like

/ ID / file name / Location /
para pwede mo ifilter sa file names nila at pag may result makikita din kung saang location.
 
Try mo siguro gumamit ng Queries.
Tapos gawa ka table like

/ ID / file name / Location /
para pwede mo ifilter sa file names nila at pag may result makikita din kung saang location.

pwede ka gumamit ng xammp then mysql..
 
ung name lang dapat magaappear while searching, lalo nat image, pdf file ibobrowse mu, malakas kumaen ng bandwidth kc un.. if ioonline,, may upload feature ka kc TS :)

Then may maximum file size cia dpat. pra di hirap si database. :)

I suggest MySQL,
 
Last edited:
TS mas maganda ata kung store mo na lang yung mga files sa filesytem. Tapos i-cache mo na lang yung filename o file directory.
Dun sa example mo ay pwede mo na lang gamitin yung event na kpag nag-type ay search lang sa cache/database. Kung medyo marunong ka ay pwede mo ilagay yung search function sa thread para hindi mag-lag while typing.

Possible nman na ilagay yung mga files sa database, ang problema nga lang ay hindi sya efficient.
Basahin mo toh: Storing images in SQL Server?

Pero kung need mo talaga ang database ay itoh:
MariaDB (for server client)
Sqlite (local storage)
 
Last edited:
i suggest MySql ...tapos yung path nalang ang nasa database ...
 
+1 sa pathname saving

Basically ang iuupload mo ay pathname to the file's directory, this way regardless kung anong DB ang gamitin mo, mas efficient.

At kung mag sisimula ka palang at hindi naman restricted kung anong language ang gagamitin, I suggest you use Django.
Minimal lines of code ang kailangan mo imodify since may predefined templates na ang Django.
Basically sa model.py mo pa lang, pwede ka na mag indicate ng isang file column, specify mo na lang kung saan directory kailangan ma save ang iuupload mo na file.

Sample snippet
Code:
# model.py
from django.db import models


class Document(models.Model):
    docfile = models.FileField(upload_to='documents/%Y/%m/%d')
    create_date = models.DateTimeField(auto_now_add=True, blank=True)


#forms.py
from django import forms


class DocumentForm(forms.Form):
    docfile = forms.FileField(
        label='Select a file'
    )
 
Back
Top Bottom