Custom image extension
Can I give custom extensions to my image file?
I want to secure my image file such that it can only be opened by my application. Is that even possible?
Yes, of course that isn't really very secure. You can set a file extension to anything you want. For example Microsoft docx files are really zip archives, LabVIEW lvproj files are XML, and the list goes on.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
Similar Messages
-
My custom rendering extension is working in Report Builder (in RSReportServer.config), but not in Report Designer (in RSReportDesigner.config): instead of adding a "TXT" export option, it's just adding a duplicate "CSV" option.
SUMMARY:
Is there a way to get these features working, with Report Designer?
DETAILS:
We are running SSRS (Reporting Services) under SQL Server 2008 R2.
Here's my rendering section:
<Render>
<Extension Name="XML" Type="Microsoft.ReportingServices.Rendering.DataRenderer.XmlDataReport,Microsoft.ReportingServices.DataRendering" />
<Extension Name="CSV" Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering" />
<!-- TXT extension with help from: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/d79845a8-17fb-4ec6-b121-2c40cf466d73/how-do-i-add-a-pipe-delimited-option-in-ssrs-2008-report-manager?forum=sqlreportingservices -->
<Extension Name="TXT" Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering">
<OverrideNames>
<Name Language="en-US">TXT(ASCII,NoColHds)</Name>
</OverrideNames>
<Configuration>
<DeviceInfo>
<FileExtension>txt</FileExtension>
<FieldDelimiter>,</FieldDelimiter>
<Encoding>ASCII</Encoding>
<NoHeader>true</NoHeader>
</DeviceInfo>
</Configuration>
</Extension>
<Extension Name="IMAGE" Type="Microsoft.ReportingServices.Rendering.ImageRenderer.ImageRenderer,Microsoft.ReportingServices.ImageRendering" />
<Extension Name="PDF" Type="Microsoft.ReportingServices.Rendering.ImageRenderer.PDFRenderer,Microsoft.ReportingServices.ImageRendering" />
<Extension Name="HTML4.0" Type="Microsoft.ReportingServices.Rendering.HtmlRenderer.Html40RenderingExtension,Microsoft.ReportingServices.HtmlRendering" Visible="false" />
<Extension Name="MHTML" Type="Microsoft.ReportingServices.Rendering.HtmlRenderer.MHtmlRenderingExtension,Microsoft.ReportingServices.HtmlRendering" />
<Extension Name="RPL" Type="Microsoft.ReportingServices.Rendering.RPLRendering.RPLRenderer,Microsoft.ReportingServices.RPLRendering" Visible="false" />
<Extension Name="EXCEL" Type="Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer,Microsoft.ReportingServices.ExcelRendering" />
<Extension Name="WORD" Type="Microsoft.ReportingServices.Rendering.WordRenderer.WordDocumentRenderer,Microsoft.ReportingServices.WordRendering" />
</Render>
When I add the above "TXT" section to RSReportServer.config, then Report Builder (and production) both show an export option "TXT(ASCII,NoColHds)".
But when I add this "TXT" section to RSReportDesigner.config, and then (in Report Designer / BIDS) attempt to export from a "Preview" of the report, the export drop-down does not show a "CSV" option followed by a "TXT"
option, but instead shows the "CSV" option twice.
This simply limits testing of the export option, to Report Builder... or requires any reports be published from Report Designer before they can be tested with
this export option.
(FYI, why this export option: compliance in our industry requires sending data to government agencies, in text files, with fixed-length columns, and ASCII encoding. Also, we're attempting to give the production of these files to the *users* managing
communication with those agencies... so we're putting them into SSRS.
I worked around the fixed length columns (and no delimiters -- no commas), by writing a version of the report where all string columns are padded, and all columns are concatenated, to form ONE LONG COLUMN... but Reporting Services' CSV export format produces
a Unicode file (UTF-8, which the agency rejected, because it had a leading "", or "EF BB BF" in hex), whereas the agency requires an ASCII file.)Hi Doug_atMidway,
According to your description, you want to enable your custom render extension. Right?
In Reporting Services, if you want to deploy the custom extension, you just need to add the extension into rsreportserver.config file. The
RSReportDesigner.config file stores settings about the rendering extensions available to Report Designer. Since you still use the csv rendering extension in your assembly, we don't need to do any modification in rsreportdesigner.config file. Pleaes
refer to the links below:
Thanks for attempting to help, Simon.
As my question states, I've *already done* both the above: changed (1) rsreportserver.config and (2) rsreportdesigner.config. I added the same code, shown above, to both files. I did that so I could see the new "txt" extension
both (1) when exporting in production and Report Builder, and (2) when exporting in Report Designer's "preview".
The change in (2) is not working: I do not see the "TXT" extension in Report Designer, when I try to export from a preview. Instead, Report Designer shows the CSV extension repeated.
Thanks for the docs. I consulted them (well, I consulted the EQUIVALENT pages, for SQL Server 2008 R2), when creating my block of code above.
Do you see anything to correct, in my code?
Are the features I'm using actually working, with rsreportdesigner.config?
Thanks again,
-- Doug -
How to Show custom image on Google Map Oracle Apex 4.1 page
Hi.. All,
Need to show custom Image (From Database Table which is a BLOB Column) as Marker on Google Map with fixed size if we zoom in or zoom out.
I am using Apex 4.1 and oracle11g r2.
Thanks in AdvanceHello,
This plugin Does Exactly What You Need.
http://www.apex-plugin.com/oracle-apex-plugins/item-plugin/extension-warp11-gmaps-item_109.html
Please read the comments on the plugin, in case you come across problem in running the plugin....
Best Regards,
Fateh
If you believe that my answer was correct, then please mark the answer as correct. This is for the best of all -
Hi to all,
I need to have one more attribute in button element for selecting picture for displaying on it.
For this I made a copy of htmlb button element into custom bsp extension,
and copied CL_HTMLB_BUTTON into ZCL_HTMLB_BUTTON, but I am getting some error while activating this.
Please suggest me some way to make this happen.
Regards,<% data image type ref to cl_htmlb_image.
data: image_string type string.
create object image.
image->id = 'UserSelectionCancel2'.
image->src = cl_bsp_mimes=>sap_icon( 'ICON_CHECKED' ).
image->tooltip = ''.
clear image_string.
image_string = image->IF_BSP_BEE~RENDER_TO_STRING( page_context ).
%>
<htmlb:button id = "UserSelectionEnter"
onClientClick = "closeiframe();"
text = "<%= image_string %> ENTER"
encode = "FALSE" />
I had seen following code to make icons, now if I have lot of icons to make I need write this code several times,
If I write one method of mine application class using above code and use one parameter to change icon name. will it work?? -
How to Test SSRS Custom Data Extension in TSql
Hi There,
I have created a custom data extenstion for SSRS 2008 Reporting Service.
I can test the CDE in the Report DataSet -> DataSet Properties -> Query Designer -> Run Query.
In the Command Text I pass parameters to the invoked VB code which is of type "BaanstedeCds" then name of my custom data extension.
I can even Attach the Visual Studio VB Code Project that is invoked by the Query Designer an debug the code.
The custom data extension works perfectly in SSRS.
However I have not found a way yet to run BaanstedeCds (with a parametertext) from within SSMS 2008 by using an T-SQL statement!!! Is there a way to use the SSRS Custom Data Extension in Sql Server Management Studio using the dataset type I used in
SSRS 2008?
Because I am leaving the path of using Custom Assemblies in SSMS, for deploying an testing that way is undoable for me.
I is to complicated and in order to properly debug these routines the entire solution of multiple projects is deployed each time even the slightest change has been made to the VB code. Also if I want to deploy from Test to Production it is very hard. I have
to detach the databases etc, ect. Note my previous question about this subject that remained unanswered!!!
Using the Custom Data Extension the problems are a lot less. However I how do I use a routine in the CDS in T-SQL, like I could invoke a routine in the Custom Code Assemblies?
I "hate" CLR routines. I have extreme trouble managing these CLR's as I explained in my post and other posts in the past.
You just cannot build a maagable system that way.
I had to convert all the CLR's (I had a lot of them) to Custom Data Extension Functions, as they do not have all the drawbacks of CLR's.
And using the CDE with all the converted CLR's in it works much better for me in the Report Manager.
However in order to test de CDE I must invoke the CDE in a Windows Form something like this:
Private Sub cmdGetData_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdGetData.Click
Dim CommandText As String = ""
' Get Parameters for CDE GetData
CommandText = txtAdoCds.Text
Dim Rdr As New BstCds.BaanstedeCdsReader(CommandText)
' Invoke GetData Function of CDE Rdr
' Input: CommandText: txtAdoCds.Text = TextBox on TestForm
' Output: DataTable: RdrDataTable
Call Rdr.GetData(CommandText)
If Not Rdr.RdrRetVal Then
GoTo End_Method
End If
' Show DataTable: RdrDataTable (in Excel)
If Not BstOff.ToonTabel(DataTabel:=Rdr.RdrDataTable) Then
Exit Sub
End If
End_Method:
End Sub
'=========================================================================
' File: BaanstedeCdsReader.vb
' Summary: Provides a means of reading one or more forward-only streams
' of result sets obtained by executing a command at a data source,
' and is implemented by Baanstede Data Processing Extensions
' that access BaanstedeIw3-routines.
'=========================================================================
Public Class BaanstedeCdsReader
Implements IDataReader
#Region "Public Variables"
Public RdrRetVal As Boolean = False
Public RdrSqlSel As String = ""
Public RdrDataTable As DataTable = New DataTable
#End Region
#Region "Constructors"
#End Region
#Region "IDataReader Members"
#End Region
' GetData '
#Region "GetData Method"
'==================================================================================================
'We are executing the command using the connection string that connects to the Active Directory.
'Hard coding of the connection string is because it is the same for all the ADs.
'Once we read the data using a DataReader, we place the same in a DataTable so that can be used for
'Other processings.
' Public Sub GetData(ByVal _CommandText As String)
' Output in Public RdrDataTable As DataTable
'==================================================================================================
Public Sub GetData(ByVal _CommandText As String)
' Ophalen Data in DataTabel '
RdrRetVal = False
' Fills RdrDataTable Using _COmmandText
RdrRetVal = True
End Sub
But can I invoke Report Manager Source Type BaanstdeCds's .BaanstedeCdsReader.GetData(CommandText) in TSQL any other way then using CLR ?
Regards Jos
It works, but it does not work (The program runs, but does not produce the desired result)Hi Josje,
Thank you for your question.
I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
Thank you for your understanding and support.
Thanks,
Wendy Fu
Wendy Fu
TechNet Community Support -
DW CS3 - custom file extension no longer working correctly
Hi - for a particular job, I needed to use a custom file
extension .htmx and it has been working fine.
However, I went into DW CS3 today, and the file opens in the
DW editor, but the code coloring and code hints etc seem to be
broken.
I've checked the Extensions.txt and MMDocumentTypes.xml
files, and all seems present and correct - see
this screencast to
see the problem.
Any ideas why it's not working? (I'm on Vista Business, but
it has definitely been working and now isn't....)
MikeWell, I managed to fix it by overwriting my
MMDocumentTypes.xml file with a clean version from another machine.
Weird. -
Error in the execution of custom billing extension in PA module
Hi All ,
We had a requiremnet for creating the custom billing extension similar to the standard Revenue calculation billing extension . The change required in the formula for calculating the revenue was the Actual total burdened cost will be the Actual total burdened hours and Budgeted baselined burdened cost will be the Budgeted baselined burdened hours .Rest of the entity in the standard revenue calculation program will be as per the standard revenue billing extension.
The standard formula is as follows :
(1) revenue amount = Lesser of (Remaining Funding Available if hard limit used) and ((AC / BC (BR – ER) – AR)
I created a package which will get the value of AC and BC as per the client requirement . Defined the Extension using PROJECT BILLING SUPERUSER >> SETUP>> Billing >> Extension screen .
This extension was then assigned to a project type . WE created a project using the same project type . When we fire PRC: Generate Draft Revenue for single project and pass the project number it first calls the Standard billing extension and then the custom one becoz of this there is error in calculating the revenue through it .
We are not sure where we are going wrong . The standard extension has been end dated too ..still everytime it executes the standard and then the custom one .
Has one faced such issue ? Request for some pointers to solve the issue.
Thanks and Regards
MNHi,
My issue got solved. It was beacause there was a method in a Bean Interface which did not have an implementation in the Bean EJB.
appc just gave a NPE.
The issue came out when i did a weblogic.ejbc.
Thanks. -
I'm trying to use a custom file extension for the Microsoft Access Text Driver (*.txt, *.csv) driver.
I have updated the FileExtns registry to have my new extension.
When I issue the following it does not work.
select [NoName]
from openrowset('MSDASQL'
,'Driver={Microsoft Access Text Driver (*.txt, *.csv)};
DefaultDir=c:\filedir'
,'select * from "file.lst"')
If I make the file a .csv it works fine. However, if it has an extension of not CSV or TXT (in this case .lst, which is in the registry setting) extension it throws the following error and cannot seem to find a solution to it.
OLE DB provider "MSDASQL" for linked server "(null)" returned message "[Microsoft][ODBC Text Driver] Cannot update. Database or object is read-only.". Msg 7350, Level 16, State 2, Line 1 Cannot get the column information from
OLE DB provider "MSDASQL" for linked server "(null)".
In addition, (although I can probably find this elsewhere), I need to have the first line 'BLANK' so that it does not miss data (there is no header row). Is there a way to use OPENROWSET without BULK to basically include all rows as data?
Any help is appreciated.Hi,
According to your description, I did a test with your script, and got the same message as your post. Usually, by default, the Microsoft Access Text Driver (*.txt, *.csv) supports the four extensions file, such as *.asc, *.csv, *.tab, *.txt. To solve this issue,
I recommend you try to save the LST file in the above format, then use OPENROESET to get data from the supported extensions file in SQL Server.
In addition, the
OPENROWSET function is mainly used to retrieve remote data from an OLEDB data source, when you use OPENROWSET without BULK, provider_name is a necessary parameter in the script. However, the OPENROWSET (BULK...) is mainly called from a SELECT…FROM clause
within an INSERT statement, when importing bulk data from a data file into SQL Server table. Thus if you need to import bulk data, you should use the basic syntax: INSERT ... SELECT * FROM OPENROWSET(BULK...), also there are some alternatives, such as
BULK INSERT
and
BCP .
Thanks
Lydia Zhang -
Can Firefox CS5 recognize custom file extensions as PNGs?
WHen you work with game skins you will have custom file extensions such as .scworld and .scskin that are really PNG files renamed. Does anyone know how to add these as recognizeable extensions in Firefox?
no, i am still dealing with this problem on both macs,
mac pro mid 2010 2,8 quad (24GB RAM) and my mbp 15" i7 (4GB RAM)
where i installed Photoshop CS5.
on both macs, photoshop always saves files with capital letter file extensions (xxx.TIF or xxx.PSD)
thats very annoying, as i have to manually rename the file in the finder later.
and thats for all files i create.
i really wonder, could anyone from the adobe staff please comment if it is a bug
or anything else?
thanks! -
Reduce size of custom images in Address Book
I love Address Book's wonderful integration with Mail.app, my iPod and even my phone. So, one day I decided to set custom images for almost all of my contacts - copying and pasting images into the fields.
However, afterwards, I realised that my 275 contact address book has ballooned from 2MB to 49.9MB thanks to the pictures. If I export the contacts into a Group vCards, it is an astounding 121.8 MB.
I feel that Apple should've limited the size of the pictures (automatically resize it just as iPhoto does for email and iWeb does for the web). However, this isn't the case.
Thus, my question is:
Is there a script or anything to reduce the size of those custom images? I am not looking forward to deleting the pictures and resizing them before importing them into Address Book. If there is an automated way of resizing the pictures, please let me know!
Thank you very much!Hi mintchocicecream,
Have a look at this:
http://discussions.apple.com/message.jspa?messageID=2271577#2271577
May be of no help, but sounds like you have larger that necessary files.
I do mot know of any script, short of a photoshop group resize that would work. Certainly nothing in Address Book.
Good Luck
John -
We are attempting to add OfficeWriter report rendering extensions for SSRS 2012 in SharePoint (2010) integrated mode through powershell. The documentation for “New-SPRSExtension” is rather
sparse and we have not found any clear examples on the internet. With SSRS 2012 in native mode, we make the following two changes to the config files:
We add the following report rendering extension declaration to
RSReportServer.config:
<Configuration>
<Extensions>
<Render>
<Extension Name="XLTemplate" Type="SoftArtisans.OfficeWriter.ReportingServices.ExcelTemplateRenderer,
SoftArtisans.OfficeWriter.RS2008"/>
<Extension Name="WordTemplate" Type="SoftArtisans.OfficeWriter.ReportingServices.WordTemplateRenderer,
SoftArtisans.OfficeWriter.RS2008"/>
</Render>
</Extensions>
</Configuration>
We add the following security trust codegroup to
RSSvrPolicy.config:
<configuration>
<mscorlib>
<security>
<policy>
<PolicyLevel version="1">
<CodeGroup version="1" PermissionSetName="Nothing">
<CodeGroup
version="*"
PermissionSetName="FullTrust"
Name="SoftArtisans_OfficeWriter_Strong_Name"
Description="This
code group grants SoftArtisans OfficeWriter code full trust.">
<IMembershipCondition
class="StrongNameMembershipCondition"
version="*"
PublicKeyBlob="00240000048000009400000006020000002400005253413100040000010001004779CB207F11
5E86EF9DD3233F9F130F8891911345176650F72330F84CA3F54C96DEB08439680660F02872EEF5DA3955
A14C63F96E57DFB71B1535280C37DA2CB5BA37D78A9882414DB11F67FD66DEBC4AD93DD34F4A587D34D
B4D23D9C6AF83431D88A7EF42BB01082913F3560DCB50129C5BBA7ECA0DE8BC286DA74F58FADE"/>
</CodeGroup>
</CodeGroup>
</PolicyLevel>
</policy>
</security>
</mscorlib>
</configuration>
What would be the equivalent syntax for “New-SPRSExtension” to do the above for SSRS 2012 in SharePoint (2010) integrated mode?
Alison Bird SoftArtisans Technical Services www.softartisans.comHi Alison,
Unlike the deployment of other custom extensions such as custom delivery extension and data processing extension, it is not necessary to add a code group for the custom assembly that grants FullTrust permission for the extension during the deployment of
custom rendering extension. If you have copy the custom assembly to the %ProgramFiles%\Microsoft SQL Server\MSRS11.<InstanceName>\Reporting Services\ReportServer\Bin folder, and modify the RSreportserver.config file to add the extention entry properly,
please open the SSRS Service Application created on the SharePoint and verify that your extension is included in the list of available export types for a report.
Reference:
Deploying a Rendering Extension
Regards,
Mike Yin
TechNet Community Support -
Custom Image bullets--is there a way to change the color?
The reason why is I'm trying to use one of the circles and it keeps coming out dark gray, and it needs to be white (on a B&W laser printer). This is for a check list on a church bulletin.
Also, is there a way to upload other bullet images to use?
Thanks!
MacBook Pro 15", CoreDuo 2 2.33 ghz Mac OS X (10.4.9) Cube 450 mhzYou would need to edit the custom image in some other application, such as GraphicConverter.
As for your second issue, Custom Image is the way to set an arbitrary image as a bullet -- what do you mean by "upload"? -
How to pass custom cookie from report builder application to SSRS Custom Security Extension?
We want to implement SSRS in SaaS model. We implemented Custom Security extension in order to authenticate users from other application. When user enters username/password, i would like to authenticate the user in other application and it will return some data which can be used for autherization. I am expecting the same set of data will be accessible during all autherization calls.
Currently we are implementing this in Report Builder application. I couldn't able to persist the information in cookie. Report builder removes all the cookies exceprt one cookie which is used by report server.Is there any way to share the information in all reportbuilder autherization calls in same session?if you have your own data extension, you can using
HttpContext.Current.Application.Add("yourkey",
yourdata);
to save your data, but the issue I met it the key, I cannot find a key depended on report builder. If I use username, if the user open 2 report builder, both of them will get the same key and same data, but at this case the data should be different.
I hope it will help you. -
How do I use a custom image as a bullet in Keynote 09?
All I need to do is use a PNG file as a bullet in the Master
Everything I find online says there is a Custom Image option but the only choices I see are None, Bullet, Image, Lettered, Numbered.
This should be simple but I have already wasted 2 hours trying to do this.
Please, can someone tell me what I am missing? What am I not understanding about this procedure?As stated, the problem was that I could not find Custom Image anywhere. I finally figured out that along with the drop down menu for the Bullets there is also a triangle before the word Bullet 7 Lists. THAT is where one finds the Custom Image choices
-
Hello all.
I am wanting to load a custom image format into my Java application, and am wondering how to do that. I have a few ideas to try but I figure if there is a site out there (or someone with the knowledge), there is no need for me to re-invent the wheel. So hopefully, someone might be able to expedite my learning. :)
The image format I want to read actually contains multiple images, with 1 color palette at the end of the file. I'd like to create a series of (I assume) BufferedImages for all the images contained within the file.
Are there any sites out there that can send me through a quick tutorial on rolling my own images, or can anyone give me a short function to do so?
Thanks so much!Okay... I failed. I could really use some help in getting this work. Please.
I have a file, which contains 1 or more compressed bitmap images and a palette. I have a small Perl script that will convert the images in the file into multiple bitmap image files, so I know where the data is and I know I have the data locations right. :)
To create a BITMAP, I must reverse the order of the palette (perl function):
sub reversePalette() {
my $output = "";
for (my $i=0; $i < length($_[0]); $i=$i+4) {
$output = $output . substr($_[0], $i+2, 1) . substr($_[0], $i+1, 1) . substr($_[0], $i+0, 1) . chr(0);
return $output;
}For the image data itself, it uses a simple RLE encoding. If I see a 0, I check the next number and "uncompress" the data by adding that many 0's to the output file.
So, what I would like to do is convert my Perl script into a Java class that will take this sprite file and return an array of BufferedImages, which can then be used for whatever.
Any help in this would be greatly appreciated! I can't even figure out how to properly load a valid BMP file manually using WritableRaster and ColorModel. I'm so lost. :(
Maybe you are looking for
-
Getting error while importing data through IMPDB
Hi All , I am getting below error while importing. Processing object type SCHEMA_EXPORT/TABLE/TABLE ORA-39126: Worker unexpected fatal error in KUPW$WORKER.POST_MT_INIT [SELECT SYS.KUPM$MCP.GET_ENDIANNESS@STAG_RISKCORE FROM SYS.DUAL] ORA-04052: e
-
Connecting direct to serial port
Hi to all!! I need to connect flash direct to serial port to send and receive data. I know that i have to look for some API, but all that i fund is some other software to do the interface, but i realy need is distribut only the flash and not the flas
-
3750x2 Disable loop guard and the effect on connectivity
Hello, I have two building about 500 yards apart. They are connected via a Lightpointe FSO (Free Space Optics) Laser and Airbridge (802.11n RF) point to point bridge. The transport up to the head is done via a multimode fiber optic cable. When the
-
Binary Search Tree Question - Duplicate Entries
I am doing a project for school where I have to parse a web page into a binary search tree. The problem I'm encountering is that the tree is not supposed to have duplicate entries. Instead, each node has a count variable which is supposed to be incre
-
When I attach a document and send as an email, non apple users can not open it?
For my business I have to send invoices to customers, When I attach the invoice to an email non apple uses can not open the file? why is this. I have tried to copy and paste the invoice to body of email and when they get it it appears as a question m