Questions tagged [embedded-resource]

Resources (such as images and help files) that are embedded into the binary of the application itself and typically not available as files.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Loading CKEditor in WebBrowser control from C# WinForms Resources

I need to load CKEditor in Webbrowser control from Resources of C# Winforms ( Windows App/ Desktop App). I can easily and successfully load a simple Html page using following code. //MyHtmlPage is my ...
  • 550
0 votes
0 answers
21 views

React js is rendering [object Object] [object Object] on my webpage instead embedded-asset-block from contentful api?

I am trying to fetch data from contenful api in my react js website, but its not rendering the title and image instead giving [object Object] [object Object] as a response on web page. from contentful ...
0 votes
1 answer
40 views

golang embed how to add a folder with pictures?

I have a code in which I directly specify the path to the folder via EMBED, but I know that you can somehow point to the folder and then just write the file name, but I don't know how to do it ...
  • 35
0 votes
0 answers
16 views

Undocumented behaviour in .rsrc section of PE

In Microsoft's documentation for PE Format it is mentioned that Resource Directory Strings are stored before Resource Data Entries. The general structure of the .rsrc section is: Resource Directory ...
0 votes
0 answers
23 views

packing image resource into nuget library and accessing it [duplicate]

I have a nuget package which contains some logos which should be accessible. The logos are located in the Resources Folder: [![enter image description here][1]][1] The logos are set up as embedded ...
0 votes
2 answers
104 views

How to hide an embedded resource file from being shown in dotPeek or any other decompiler

I have a file with a password that I need to somehow hide. Is there a way to hide an embedded resource from a decompiler? If there isn't, what is the best practice to hide files from being decompiled? ...
0 votes
1 answer
82 views

Sharing Resources Between MAUI and WPF

I have been writing C#/WPF applications for years, but have started to experiment with some apps using MAUI. Over time, I have gathered icons and other visual resources in to a class library which has ...
  • 1,562
0 votes
0 answers
8 views

Capture external form inputs embedded on my WordPress

I have embedded this form on my website FREE SEO AUDIT: <div id="seo-audit-form-div"><script type="text/javascript" id="seo-audit-form" src="https://www....
0 votes
1 answer
66 views

Changing ImageData using Open XML SDK

I use Open XML SDK to manipulate OOXML spreadsheets. I need to change the data in a VmlDrawingsPart, specifically the ImageData. ImageData have an o:relid property which is the reference to the image/...
0 votes
2 answers
75 views

How to load images from resources with GetManifestResourceStream?

How to load images from Resources, please? Some of my images are located inside a folder. My image is saved as Resource (cf. Build Action). I don't use a .resx file. I'm able to retrieve the list of ...
0 votes
1 answer
30 views

Is there a possibility to have embeded config only for specific configuration in .NET desktop application?

a desktop application (WPF, .NET 4.6.2) has lots of settings in app.config. The settings have different values for specific configurations: App.Debug.config and App.Release.config. QA engineers are ...
  • 626
1 vote
0 answers
142 views

How to fix RuntimeException: Unable to start activity ComponentInfo due to Resources$NotFoundException: used for activityTheme on Android 11+ devices

We are getting a crash occurring only on Android 11 and lower devices. stack trace - Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{..SplashActivity}: android....
  • 1,035
1 vote
1 answer
30 views

Link in resources

Looks like there are tons of webpages online and questions on SO, but I still can't get this to work after several hours of searching. I'm cross-compiling from Linux to Windows by setting CC/CXX to ...
  • 11.4k
0 votes
0 answers
12 views

Replacing English sentences in program dialogues with Bulgarian translations results in text truncation

I have a very old program (written in the time of Windows XP in C++, I trust). I need to translate certain dialogues of the program from English to Bulgarian. In principle, this can be done via ...
  • 5
1 vote
2 answers
88 views

Embedding Image as new ImagePart creates a .bin file using Open XML SDK

I am developing code using a spreadsheet input file, a MemoryStream, Open XML SDK and ImageMagick to: Read stream of an embedded image file in a spreadsheet Convert stream to TIFF file format Embed ...
2 votes
0 answers
562 views

.Net Maui List Assets Under Resources Raw Folder

The Context. I'm working on .net Maui mobile app that uses some native android libraries with dependencies on bunch of configuration files provided by vendor. These files should be placed into data ...
  • 81
0 votes
1 answer
46 views

Display image from embedded resource

I need to display our app logo on the main page of the application but no matter what I do, nothing shows up. <Image Source="{StaticResource 'MystronicsWinder.Resources.AppIcon....
0 votes
1 answer
90 views

Add a PDF into a word document using docxtemplater

Is there any possible way to add an existing PDF-File into a word document using docxtemplater (e.g. in connection with survey.JS) Manually you can do this within Word by selecting > Insert > ...
-1 votes
1 answer
27 views

Why isn't there a method to tell the compiler to directly read the content of an embedded resource as a executive script?

From this comment: the resource manager is intended to be used for storing resources (such as images, strings, or other data) that are embedded in your application, not for running external programs ...
  • 1,713
1 vote
0 answers
116 views

Why does Helmet block access to YouTube videos in my Express app, which uses embedded YouTube player?

I have written an Express app, where users can post YouTube videos. YouTube videos are embedded with iframe elements in the relevant view, with YouTube embedded player. Before I tried to deploy the ...
  • 11
0 votes
0 answers
10 views

Embedded resource does not contain folder name

I have a Visual Studio 2019 Console application. In the folder Res1, there is the text file TextFile1.txt as embedded resource. I would expect the resource name to be ConsoleApp1.Res1.TextFile1.txt, ...
  • 369
0 votes
0 answers
63 views

Writing an Installer that contains .exe files, which it then runs/extracts, using C++

I'm trying to write a custom installer for a project, which acts like a one in all .exe. The project persists of a mariadb installer, a xampp installer and some other php files. I want the result to ...
0 votes
0 answers
19 views

.NET 6 embedded views & multi tenancy

I am developing a multi tenancy web app in .NET 6. I have so far got to a point where my main app will have all the default controllers, views, view components etc. I have also got a separate class ...
  • 1,941
0 votes
0 answers
23 views

Is it possible to add a file to a RESX as a link through the GUI?

In Visual Studio you can add a resource to the project as an linked source file which is read from its original location. Project menu > Add Existing Item... > Select file > Click [Add as ...
  • 11.2k
0 votes
0 answers
201 views

How to show an embedded video inside of a window in C# WPF Application?

What I need : In C# WPF on Visual studio 2019 in Windows 10, I want to show and play a video inside a My window from the app not directly path What have I done : I have included that video in my ...
0 votes
1 answer
96 views

VSTO how add image from embedded resources

I try import image to Word file from embedded resources. But i don't know how do it. For example: Globals.ThisDocument.InlineShapes.AddPicture(Resources1.ImageLogo.ToString()); But it isn't work, ...
1 vote
0 answers
163 views

spring boot: cannot read resource inside flat jar

I can't read a resource file inside spring flat file. I've put my resource file inside src/main/resources folder, and then in my @Component class: @Value("classpath:Graphic.xlsx") private ...
  • 338
0 votes
0 answers
52 views

C++Builder App Uses Wrong Icon Whenever a .wav File Is Embedded

I've migrated (not copied and pasted) an app to C++Builder 11.2. It uses an embedded .wav file that's referenced from an .rc resource file. Here's the problem: The app's icon becomes a default Windows ...
0 votes
2 answers
30 views

Acknowledgement bit setting in CAN lower level

As we know, in CAN Acknowledgement bit is set when receiver receives the transmitted data correctly. Can you please explain how this bit is set and who monitors and sets at CAN lower level ? I am ...
0 votes
1 answer
81 views

Accessing embedded resource as "a file"

I'm trying to glue together two libraries where lib1 is providing scripts to lib2. The libraries are used in c++11 code I'm writing. I can't modify those libs. Scripts in lib1 are embedded into the ...
  • 177
0 votes
0 answers
64 views

C code to detect whether the Ethernet cable is connected or not

function to check Interface link(UP/DOWN) Details: if two system's are connected using Ethernet on known interface with static IP, if we remove Ethernet this program should detect the link status, Any ...
1 vote
0 answers
81 views

embedded resources paths change

At work we use the EmbeddedFileProvider to load SQL files and access the files via relative paths to the resource like so: path/to/file.sql. Yesterday I worked on a private project and thought I could ...
0 votes
0 answers
71 views

Handling resources when migrating from old style csproj to sdk csproj

I'm trying to migrate from an old style csproj file where I have this in the file <ItemGroup> <Resource Include="Resources\CustomerLogo.png" /> </ItemGroup> and ...
0 votes
1 answer
93 views

Unable to rename the resource class name in Visual Studio

Unable to rename the resource class name. For the following example (picture below), Resource2 can't be renamed in any way. Either in props, in place in the Solution Explorer or elsewhere. Could it be ...
  • 10.6k
0 votes
0 answers
33 views

Load a resource from a hooked DLL

I need to play a audio file from a resource inside a hooked DLL: PlaySoundA(MAKEINTRESOURCEA(IDR_WAVE1), hModule, SND_RESOURCE); here my code: HINSTANCE m_hinst_dll = nullptr; extern "C" ...
0 votes
0 answers
52 views

Reading ADC121C021 by FreeRTOS

I'm trying to read ADC count by I2C based ADC121C021 (here) module with help of this code but Im only getting ESP_FAIL static esp_err_t read_ADS(i2c_port_t i2c_num, uint8_t *data_h, uint8_t *data_l){ ...
0 votes
0 answers
75 views

Turning an Embedded Resource into a MemoryMappedFile (C#)

I've been working on a file that was set-up to load data from a file, turn it into a MemoryMappedFile and then use the mmf. However, deploying this to Android (through Unity) means we can no longer ...
0 votes
0 answers
108 views

Maven: Exclude resources from dependent jar

I have a maven jee project A that depends a jar B, which depends a jar C. In the jar C there are xhtml pages with the same path & names as jar B, I can't change B's pages names nor path . I tried ...
0 votes
0 answers
46 views

Embedded PDF showing up Blank

Coding out of necessity as a smaller part of my new job. Need to embed PDF in HTML. Tried iframe, object, and embed tags but the PDF always shows up as blank. For context - I am trying to embed on a ...
  • 1
1 vote
1 answer
407 views

Open embedded BMP images with SDL?

I am trying to embed an image in a C++ program, but I can't open it with SDL. I already tried using xpm, xfc, tried to use SDL_LoadBMP_RW(), tried to convert the image into C code...nothing worked. I ...
0 votes
1 answer
357 views

How to add to a List and display images from Resource File

I am creating a BlackJack game and I'm currently having a problem displaying the card image needed on my list. I have added all 52 card to my resource file and I can't seem to have them displayed in a ...
0 votes
0 answers
45 views

Does Python support embedding relative-path content?

Rust supports let some_text = include_str!("./data.txt"); and let some_ba = include_bytes!("./data.bin");, that is, embed (relative-path) content without using runtime instructions ...
user avatar
4 votes
0 answers
174 views

Embed AVI as a resource file in Delphi

I have a TForm with a TPanel which is linked to the display properties of a TMediaPlayer. By selecting Project -> Resources and Images I was able to insert my video as a resource file, where ...
0 votes
2 answers
74 views

How can I write a subroutine to write an embedded binary resource to a file?

I have a resource file embedded within my VB.NET 2019 project that with a button click, I would like to copy to the desktop. I tried to do this with a private sub so I could reuse the function but I ...
  • 33
0 votes
0 answers
118 views

Renaming embedded resources using wildcards in .Net Core 3.1

I'm currently embedding some .htm files for emails in a .Core 3.1 application using the .csproj file: <EmbeddedResource Include="..\EmailTemplates\*" /> This works, but only file name ...
  • 141
0 votes
2 answers
137 views

Can't Change Default Java Image (JFrame.setIconImage)

I am trying to change the icon of the Java application but nothing seems to work. I am trying to get image from resources path using: getClass().getResource("/AppIcon.png") Sometimes I get ...
0 votes
0 answers
18 views

Can't Load my Assets when running my java AWT game jar by RightClicking on MacOS [duplicate]

i made a game with awt and made a jar out of it . but when i run it by right clicking it it doesnt load the assets ( assets are on the jar file) But then i run it with terminal it loads the assets ! i'...
  • 11
0 votes
0 answers
7 views

Take LCD as shared resource and write

A data from TaskA for ever 50mSec & TaskB for every 30mSec..TaksA data “TaskA_LCD2x2”, then taskB data “TaskB_LCD2x2”. Achieve minimum idle task time. this question from RTOS (Real Time Operating ...
0 votes
1 answer
84 views

I can't display an image in a panel

I'm trying to display an image in a JPanel in an application where I already did that in another panel. So the first thing I did it was to use the same code but it didn't work! I got this message: ...
0 votes
2 answers
80 views

Saxon .NET custom uri resolving in C++

I am using Visual Studio 2022, and I'm on Windows 11 Saxon .NET uses a System::Xml::XmlUrlResolver to resolve the uri's in a xslt of a transformation. What's even better about Saxon .NET, is it ...
  • 89

1
2 3 4 5
39