Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
how to show txt file in Mediabin?
System
I have to use Mediabin to store txt file, but MB cannot show txt file content, how can I show it in MB?
even use "download and open it " method to let user view the txt content?
any suggestion?
thanks!
Find more posts tagged with
Comments
lyman
I am afraid that .txt is not a supported format in MediaBin although the file will insert using the default classification "generic". Depending on the use case there may be several approaches to get you where you need to go. For example, you could consider adding the text as metadata to a placeholder asset. Also PDF and Word files are textual in nature but do preview.
Cheers,
Lyman Hurd
MediaBin Server Team
MediaBin Server Team
Interwoven, Inc.
Migrateduser
thanks lyman,
use placeholder asset is a good idea. but why MB can preview PDF and word file ,but cannot preview txt type file, I think support to plain text is very easy for MB development team. is it becuase user do not have such need?
besides, I found if I named a asset with Chinese name and begin to download the asset, MB always told me cannot find the file. it is only because Chinese file name cannot be recognized by web server. how to solve this problem? maybe MB should use URLEncode method to encode the file name while download preparation.
thanks
lyman
To get from a file to a preview we have pieces of code known as primitives. To be honest, there has not been sufficient demand for text files to date to justify its own primitive. We will certainly take it into consideration in future.
The Chinese filename should work (for any MediaBin version 4.5 or above). Please try to get all the necessary details to
support@interwoven.com
so we can try to track that down. As you know there are multiple steps (browser to web server, web server to MediaBin server, etc.) and we will have to determine what link in the chain is not working, so please be prepared to help them with exact browser version and software version.
Thanks,
Lyman Hurd
MediaBin Server Team
MediaBin Server Team
Interwoven, Inc.
Migrateduser
thanks, lyman,
I adopt your suggestion and use placeholder asset to store txt content in metadata. so my next question is
how to bulk import and export metadata of assets?
could you give me simple code sample? script mode is the best. I can use it in MB web client.
I have read all developAIP of MB but cannot found any sample code, I even don't know how to use API.
thank you very much.
Migrateduser
MediaBin has over 20 sample COM applications shipped with the SDK. Unfortunately, none specifically demonstrate import or export, but these functions are very obvious to use once you become familiar with programming the COM api. Please contact Customer Support if you do not have access to the sample applications and the associated documentation (readme.txt files).
Migrateduser
I suspect the reason you are not able to save a file to disk when you download a file with Chinese characters, is that you are using IIS 5.1. IIS 5.1 does not permit non-Latin characters in URLs. This is a deficiency acknowledged by Microsoft. The problem has been rectified in IIS 6.0.
For sites using asset names containing non-Latin characters, use IIS 6.0 which is standard for Windows 2003 Server.
meterchart.rptdesign